Update a domain
This endpoint allows you to update a domain
If you update the domain without specifying one or any contact handle, we’ll keep the existing one.
If you need a local presence for an extension, simply use the handle ‘PL_NS’ to use our local presence. Warning : This service will be billed.
Endpoint
PUT /registrar/v1/domains/{domain}
Parameters
| Name | Location | Required | Type | Default value | Description |
|---|---|---|---|---|---|
| domain | URL | Yes | String | A complete domain name | |
| admin | Body | No | String | Admin contact handle. | |
| tech | Body | No | String | Tech contact handle. | |
| primary_hidden_nameserver | Body | No | String | If you want to use a primary hidden nameserver, you can use this field. If you do not have the right, please contact your account manager. | |
| nameservers | Body | No | array[string] | An array containing the list of DNS used for this domain. The primary DNS will use array key number 0, secondary one will use key ‘1’, etc... | |
| authInfo | Body | No | String | The domain authinfo | |
| language | Body | No | String | The domain language,use the ISO 639-1 code | |
| addons | Body | No | addons | This field is needed when registering some particular extensions. Check the addons Schema for more details |
Response
Update domain
Example Request
PUT /registrar/v1/domains/exemple.com
Content-Type: application/json
Body
{
"admin": "NSINT-56423 or PL_NS",
"tech": "NSINT-56423 or PL_NS",
"primary_hidden_nameserver": "ns1.hidden.com",
"nameservers": {
"0": "ns1.test.com",
"1": "ns2.test.com",
"2": "ns3.test.com",
},
"authInfo": "NMS-123",
"language": "fr",
"addons": {
"trademarkNum": "TDM123"
}
}
Example Response
{
"message": "The domain name has been updated."
}