CloneContact
(Related EPP Command » Contact:Create)
The CloneContact command is used to create an exact duplicate of a particular contact.
Required Parameters
Section titled “Required Parameters”The following parameters are standard parameters for this command.
Command
command=CloneContactcontact= (CONTACT)Response
code = (INT)description = (TEXT)property[CONTACT][0] = (CONTACT)property[ROID][0] = (TEXT)Attributes
Section titled “Attributes”| ATTRIBUTES | DETAILS |
|---|---|
| CONTACT | Contact handle |
| ROID | ROID of the new contact |
Optional
Section titled “Optional”The following parameters are optional for this command.
Command
command=CloneContactcontact= (CONTACT)new = 1Response
code = (INT)description = (TEXT)property[CONTACT][0] = (CONTACT)property[ROID][0] = (TEXT)Attributes
Section titled “Attributes”| ATTRIBUTES | DETAILS |
|---|---|
| NEW | Required if contact in same account should be cloned |
Command
command=CloneContactcontact= (CONTACT)includeextensions = 1Response
code = (INT)description = (TEXT)property[CONTACT][0] = (CONTACT)property[ROID][0] = (TEXT)Attributes
Section titled “Attributes”| ATTRIBUTES | DETAILS |
|---|---|
| INCLUDEEXTENSIONS | 0 or 1 (optional, default 0). 1 = also copy the contact extensions to the new contact. |
Copied when INCLUDEEXTENSIONS = 1:
- Verification data: all
X-VERIFICATION-*fields - Disclose settings:
X-DISCLOSE,X-UNDISCLOSE - Property set:
X-PROPERTYSET - .AU fields: all
X-AU-*fields - TLD contact fields that are stored with the contact, for example .UK
X-UK-TRADING-NAME,X-UK-OWNER-CORPORATE-TYPE,X-UK-OWNER-CORPORATE-NUMBER
Not copied: status locks, X-FOREIGN-ID, X-RATING-AUDIT, NIS2 settings.
INCLUDEEXTENSIONS only works for contacts of the own account. Otherwise the command returns:
531 Authorization failed; INCLUDEEXTENSIONS requires own contactUsing INCLUDEEXTENSIONS always creates a new contact handle (like NEW = 1).
Example:
Command
COMMAND = CloneContactCONTACT = P-ABC123INCLUDEEXTENSIONS = 1Contact commands