21 Domains API: How to update domain's attributes
This is a series of articles dedicated to demonstrating how to get get acquainted with Openprovider Domains API methods. To get more information about our API in general, please use our documentation portal as your reference.
If you need to modify contact data of the domain or the nameservers as well as to set or remove a transfer lock or special parameters associated with the domain, you should utilise Update Domain method of the API.
PUT {base_url}/domains/{id}
REQUEST VALUES
NB The owner, admin and tech handles can be retrieved via the customers endpoint and will be the registered contacts for this domain.
REQUEST EXAMPLE
curl -X PUT \
'http://api.openprovider.eu/v1beta/domains/123456' \
-H 'Accept: */*' \
-H 'Authorization: ,Bearer 2f4c1c3a9******15d22b378a64' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-d '{
"admin_handle": "XX123456-XX",
"auth_code": "2FIXQ63NCQNT",
"autorenew": "default",
"comments": "Any comments go",
"domain": {
"extension": "com",
"name": "domain",
},
"is_locked": true,
"is_private_whois_enabled": false,
"is_spamexperts_enabled": true,
"ns_template_name": "Default",
"owner_handle": "XX123456-XX",
"reseller_handle": "XX123456-XX",
}
RESPONSE EXAMPLE
{
"data": {
"id": 11195838,
"status": "ACT"
}
}