It is a method to create a new user field, the value of which can be set for each recipient, and then it can be substituted in the letter.
Principle of use
|Syntax and URL to call the method|
|createField (string name, string type)|
|api_key *||API access key.|
|name *||Variable to be substituted. It must be unique and case sensitive. Also, it is not recommended to create a field with the same name as the standard field names (tags, email, phone, email_status, phone_status, etc.) as the importContacts. Admissible characters: Latin letters, numbers, «_» and «-». The first character must be a letter. No spaces are allowed.|
|type *||Field type Possible options:
The field type is relevant only for the web interface, the controls are adjusted to the possible values. Values of different types are stored in the same way, in the text form.
|public_name||Field name. If it is not used, an automatical generation by the «name» field will take place.|
|Object with an id field containing the code of the field created.Example of the return value: