PUT api/Domain/{handle}?user={user}
Update status (protect/unprotect), anonymouswhois, autorenew
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| handle |
Domain handle |
string |
Required |
| user |
Optional user handle - if empty logged in user will be used |
string |
None. |
Body Parameters
Domain object with fields to update
UpdateDomain| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | string |
None. |
|
| HasAnonymousWhois |
Flag to make whis anonymous |
boolean |
None. |
| AutoRenew |
Has auto renew - only available to owner or reseller |
boolean |
None. |
Request Formats
application/json, text/json
{
"Status": "sample string 1",
"HasAnonymousWhois": true,
"AutoRenew": true
}
application/xml, text/xml
<UpdateDomain xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Domain"> <AutoRenew>true</AutoRenew> <HasAnonymousWhois>true</HasAnonymousWhois> <Status>sample string 1</Status> </UpdateDomain>
application/x-www-form-urlencoded
Response Information
Resource Description
Collection of errors. Error has a code of 200 with detail if successful.
Return codes
200 - ok
300 - ambiguous
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
570 - object status does not allow for operation
550 - parameter value policy error
572 - operation not allowed for this TLD
| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Error code |
integer |
None. |
| Detail |
Error description |
string |
None. |
| Data |
Additional information |
Object |
None. |
Response Formats
application/json, text/json
[
{
"Code": 200,
"Detail": "Domain update ticket created.",
"Data": {
"Property": {
"Name": "Status",
"Value": "protected"
}
}
},
{
"Code": 572,
"Detail": "Anonmymous Whois not applicable on this extension (fr)",
"Data": {
"Property": {
"Name": "OrHasAnonymousWhoisgName",
"Value": true
}
}
}
]