The EPP update command allows you to modify the attributes of a domain, account, nameserver or contact object.
In order to modify the attributes of a domain name, the update command must contain a <domain:update> element that identifies the domain namespace and location of the domain schema.
The domain:update element contains the following child elements:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<command>
<update>
<domain:update
xmlns:domain="http://www.nominet.org.uk/epp/xml/nom-domain-1.0"
xsi:schemaLocation="http://www.nominet.org.uk/epp/xml/nom-domain-1.0
nom-domain-1.0.xsd">
<domain:name>example.co.uk</domain:name>
<domain:account>
<account:update
xmlns:account="http://www.nominet.org.uk/epp/xml/nom-account-1.0"
xmlns:contact="http://www.nominet.org.uk/epp/xml/nom-contact-1.0">
<account:contact type="admin" order="1">
<contact:update>
<contact:email>admin@strant.co.uk</contact:email>
</contact:update>
</account:contact>
</account:update>
</domain:account>
<domain:ns
xmlns:ns="http://www.nominet.org.uk/epp/xml/nom-ns-1.0">
<ns:create>
<ns:name>ns2.example1.co.uk</ns:name>
</ns:create>
<domain:nsObj>NS1001</domain:nsObj>
</domain:ns>
<domain:auto-bill/>
<domain:next-bill>5</domain:next-bill>
</domain:update>
</update>
<clTRID>ABC-12345</clTRID>
</command>
</epp>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<trID>
<clTRID>ABC-12345</clTRID>
<svTRID>123456</svTRID>
</trID>
</response>
</epp>
The EPP update command allows you to modify the attributes of an account object. You can modify an account object in one of the following ways:
The update command must contain an account:update element that identifies the account namespace and location of the account schema. This element contains the following child elements:
This modifies the trad-name, type and co-no of an account object, and adds an admin contact. A billing contact is removed from the account object and the billing address is also removed. The first admin contact is modified.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<command>
<update>
<account:update
xmlns:account="http://www.nominet.org.uk/epp/xml/nom-account-1.0"
xmlns:contact="http://www.nominet.org.uk/epp/xml/nom-contact-1.0"
xsi:schemaLocation="http://www.nominet.org.uk/epp/xml/nom-account-1.0
nom-account-1.0.xsd">
<account:roid>286467</account:roid>
<account:trad-name>R. S. Industries</account:trad-name>
<account:type>STRA</account:type>
<account:co-no>NI123456</account:co-no>
<account:addr type="billing"/>
<account:contact type="admin">
<contact:create>
<contact:name>Ms S. Strant</contact:name>
<contact:phone>01865 123457</contact:phone>
<contact:fax>01865 123456</contact:fax>
<contact:email>s.strant@strant.co.uk</contact:email>
</contact:create>
</account:contact>
<account:contact type="billing">
</account:contact>
<account:contact type="admin">
<contact:update>
<contact:phone>01865 232564</contact:phone>
</contact:update>
</account:contact>
</account:update>
</update>
<clTRID>ABC-12345</clTRID>
</command>
</epp>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<trID>
<clTRID>ABC-12345</clTRID>
<svTRID>65789465</svTRID>
</trID>
</response>
</epp>
In order to modify the attributes of a contact object, the update command must contain a contact:update element that identifies the contact namespace and location of the contact schema.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<command>
<update>
<contact:update
xmlns:contact="http://www.nominet.org.uk/epp/xml/nom-contact-1.0"
xsi:schemaLocation="http://www.nominet.org.uk/epp/xml/nom-contact-1.0
nom-contact-1.0.xsd">
<contact:roid>C11001</contact:roid>
<contact:fax/>
<contact:email>contact@example.co.uk</contact:email>
</contact:update>
</update>
<clTRID>ABC-12345</clTRID>
</command>
</epp>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<trID>
<clTRID>ABC-12345</clTRID>
<svTRID>65789465</svTRID>
</trID>
</response>
</epp>
In order to modify the attributes of a nameserver object, the update command must contain a ns:update element that identifies the nameserver namespace and location of the nameserver schema.
Note that modifying a nameserver object will automatically modify all domain names associated with it.
The <ns:update> element contains the following sub-elements:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<command>
<update>
<ns:update
xmlns:ns="http://www.nominet.org.uk/epp/xml/nom-ns-1.0"
xsi:schemaLocation="http://www.nominet.org.uk/epp/xml/nom-ns-1.0
nom-ns-1.0.xsd">
<ns:roid>NS1001</ns:roid>
<ns:name>ns0.example2.co.uk</ns:name>
</ns:update>
</update>
<clTRID>ABC-12345</clTRID>
</command>
</epp>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<trID>
<clTRID>ABC-12345</clTRID>
<svTRID>65789465</svTRID>
</trID>
</response>
</epp>