DigitalOcean-public.v2-new_Domain Records
Update a Domain Record
To update an existing record, send a PUT request to /v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID. Any attribute valid for the record type can be set to a new value for the record.
See the attribute table for details regarding record types and their respective attributes.
put/v2/domains/{domain_name}/records/{domain_record_id}
Path parameters
domain_namestring required
The name of the domain itself.
domain_record_idinteger required
The unique identifier of the domain record.
Request body
Example request
{
"id": 28448429,
"type": "NS",
"name": "@",
"data": "ns1.digitalocean.com",
"ttl": 1800
}Response
The response will be a JSON object with a key called domain_record. The value of this will be a domain record object which contains the standard domain record attributes.
Example response
{
"domain_record": {
"id": 3352896,
"type": "A",
"name": "blog",
"data": "162.10.66.0",
"priority": null,
"port": null,
"ttl": 1800,
"weight": null,
"flags": null,
"tag": null
}
}