Metaregistrar EPP documentation

All contact commands: (check) (create) (delete) (info) (modify)

Contact update

Updating a contact means changing the information that is currently set within the contact. That is why the contact:update command only allows the <contact:chg> element.

Example contact:update request

To update a contact you use the contact:update command. Please refer to the XSD files to see which elements are allowed where.

<?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"> <command> <update> <contact:update> <contact:id>RP01mGXpAB6Ph8hmArSu6P9a</contact:id> <contact:chg> <contact:postalInfo type="int"> <contact:name>Contact name</contact:name> <contact:org>Contact organization</contact:org> <contact:addr> <contact:street>Street 1</contact:street> <contact:city>City</contact:city> <contact:sp>PR</contact:sp> <contact:pc>10000</contact:pc> <contact:cc>US</contact:cc> </contact:addr> </contact:postalInfo> <contact:voice>+31.612345678</contact:voice> <contact:email>test@test.com</contact:email> <contact:authInfo> <contact:pw>X4XIE8VZAX</contact:pw> </contact:authInfo> </contact:chg> </contact:update> </update> <clTRID>57c42c1ddc6b8</clTRID> </command> </epp>

Example Response

<?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"> <response> <result code="1000"> <msg>Command completed successfully</msg> </result> <trID> <svTRID>MTR_cb63f63157239b333f13116592a1c1c2ae4b2d0a</svTRID> <clTRID>57c42c1ddc6b8</clTRID> </trID> </response> </epp>

Example modify contact: add or update properties of a contact

With the same update command you can add or update extra properties of a contact. Some registries need these extra properties to be able to register or update domain names. An example of a property update command can be found below. There is no difference between add or update - the system determines for itself if the properties are already there or not. There is no command to delete the properties that are existing. Please refer to the Metaregistrar back-end which properties must be set for which registry

<command> <update> <contact:update> <contact:id>RP01mGXpAB6Ph8hmArSu6P9a</contact:id> </contact:update> </update> <extension> <command-ext:command-ext> <command-ext-contact:contact> <command-ext-contact:update> <command-ext-contact:property> <command-ext-contact:registry>Dnsbe</command-ext-contact:registry> <command-ext-contact:name>vat</command-ext-contact:name> <command-ext-contact:value>1219884</command-ext-contact:value> </command-ext-contact:property> <command-ext-contact:property> <command-ext-contact:registry>Dnsbe</command-ext-contact:registry> <command-ext-contact:name>lang</command-ext-contact:name> <command-ext-contact:value>nl</command-ext-contact:value> </command-ext-contact:property> </command-ext-contact:update> </command-ext-contact:contact> </command-ext:command-ext> </extension> <clTRID>5ac77af78738a</clTRID> </command>