PUT account/domains/{domain}?optOutOfLock={optOutOfLock}
Updates locking, auto-renew, or whois privacy status on the domain.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| domain |
The domain name |
string |
Required |
| optOutOfLock |
Whether to opt out of a 60-day lock (if applicable) |
boolean |
Default value is True |
Body Parameters
An account domain object containing changes to the locking, auto-renew or whois privacy flags.
AccountDomain| Name | Description | Type | Additional information |
|---|---|---|---|
| DomainName | string |
None. |
|
| Status | string |
None. |
|
| ExpirationDate | date |
None. |
|
| Locked | boolean |
None. |
|
| AutoRenew | boolean |
None. |
|
| WhoIsPrivacy | boolean |
None. |
|
| Category | string |
None. |
|
| UpgradedDomain | boolean |
None. |
|
| AuthCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DomainName": "sample string 1",
"Status": "sample string 2",
"ExpirationDate": "2026-02-20T01:55:32.5483382-07:00",
"Locked": true,
"AutoRenew": true,
"WhoIsPrivacy": true,
"Category": "sample string 7",
"UpgradedDomain": true,
"AuthCode": "sample string 9"
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
The updated AccountDomain object.
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
