Create contact[Link]
The create contact command can be used to create a new contact object.
Input data[Link]
Tag |
Occurrence min-max |
Remarks |
---|---|---|
id |
1 |
The unique id of the contact object is required. The characters used for the contact id should be from the set [a-z,0-9,-,_]. |
postalInfo |
1 |
Required attribute type=’loc’ or ‘int’. When using type ‘int’, only ASCII may be used. When using type ‘loc’, non-ASCII characters may be used. Only 1 postalInfo block is accepted. |
cc |
1 |
The cc element should contain a country code from ISO 3166-1 list with a few additional codes from the ISO 3166 reserved codes list. |
voice |
1 |
Is required by DNS Belgium. Contains the telephone number of the contact that is being created. A phone number is a string that must begin with a plus sign (‘+’), followed by a country code, followed by a dot (‘.’), followed by a sequence of digits representing the telephone number. E.g. DNS Belgium’s phone number is +32.16284970. |
fax |
0-1 |
The syntax is the same as the voice element. |
1 |
E-mail address syntax is defined in [RFC 2822]. |
|
authInfo |
1 |
Must be provided, its value will be ignored. |
disclosure |
0 |
This element will be ignored. |
Following characters may be used in a type ‘loc’ postalInfo block:
!”#$%&’()*+,./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿŒœŠšŸŽž€
Prerequisites[Link]
The contact ID must be available.
The contact ID must not start with ‘clone’.
Naming conventions must be followed.
Required elements must be provided.
authInfo element must be provided. Its value is ignored.
Transformations[Link]
This command creates a new contact object with the requested contact ID.
Response details[Link]
In case the command was successful, the response contains an resData element with the contact ID and time of creation of the contact object.