The Lock opt-out command can be used to prevent the whois opt-out field being set to 'Y'.
Guidelines
Use of the command has the following effect on an account:
- If the opt-out is set to 'Y' then it is changed to 'N'.
- A lock is placed on the opt-out field to prevent further changes.
<account:lock> element
The <account:lock> element contains the following sub-elements:
Either
- An <account:roid> element giving the account to lock
or
- An <account:domain-name> element giving the name of a domain name on the account to lock.
The element also has the following attribute:
- A type attribute of value "opt-out".
Example of an account lock operation
<?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:lock
xmlns:account="http://www.nominet.org.uk/epp/xml/nom-account-2.0"
xsi:schemaLocation="http://www.nominet.org.uk/epp/xml/nom-account-2.0
nom-account-2.0.xsd" type="opt-out">
<account:roid>12345678</account:roid>
</account:lock>
</update>
<clTRID>ABC-123</clTRID>
</command>
</epp>
Example of a successful response to a lock operation
<?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="http://www.nominet.org.uk/epp/xml/epp-1.0
epp-1.0.xsd">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<trID>
<clTRID>EPP-ABC-12345</clTRID>
<svTRID>10012531</svTRID>
</trID>
</response>
</epp>