Domains
Update a domain
Allows updating of the autorenew, WhoIs Privacy and lock status of the specified domain. The request requires one, or any combination of the parameters in order to pass validation. If any of the requested updates failed, the domain will be returned to it's original state.
patch/core/v1/domains/{domainName}
Request
- Base URL: https://api.dev.name.com
- URL: https://api.dev.name.com/core/v1/domains/{domainName}
- Auth: HTTP basic
Path parameters
domainNamestring required
DomainName is the domain to update.
Request body
Example request
{
"autorenewEnabled": true,
"privacyEnabled": true,
"locked": true
}Response
A successful response will return the updated domain.
Example response
{
"domainName": "example.com",
"createDate": "2023-01-15T14:30:00Z",
"expireDate": "2025-01-15T14:30:00Z",
"autorenewEnabled": true,
"locked": true,
"locks": [
"clientTransferProhibited",
"clientHold"
],
"transferLockExpiresAt": "2023-03-16T14:30:00Z",
"privacyEnabled": true,
"contacts": {
"admin": {
"firstName": "John",
"lastName": "Doe",
"companyName": "Example Inc.",
"address1": "123 Main Street",
"address2": "Suite 400",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"email": "john.doe@example.com",
"phone": "+15551234567",
"fax": "+15557654321",
"isVerified": true,
"verificationId": 12345
},
"billing": {
"firstName": "John",
"lastName": "Doe",
"companyName": "Example Inc.",
"address1": "123 Main Street",
"address2": "Suite 400",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"email": "john.doe@example.com",
"phone": "+15551234567",
"fax": "+15557654321",
"isVerified": true,
"verificationId": 12345
},
"registrant": {
"firstName": "John",
"lastName": "Doe",
"companyName": "Example Inc.",
"address1": "123 Main Street",
"address2": "Suite 400",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"email": "john.doe@example.com",
"phone": "+15551234567",
"fax": "+15557654321",
"isVerified": true,
"verificationId": 12345
},
"tech": {
"firstName": "John",
"lastName": "Doe",
"companyName": "Example Inc.",
"address1": "123 Main Street",
"address2": "Suite 400",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"email": "john.doe@example.com",
"phone": "+15551234567",
"fax": "+15557654321",
"isVerified": true,
"verificationId": 12345
}
},
"nameservers": [
"ns1.example.com",
"ns2.example.com"
],
"renewalPrice": 12.99
}Changes
No recorded changes to this operation across all 1 revision of this API.