Return to Homepage

Update Record

http
PUT /dns/{domain}/records/{id}

Partial updates are supported: send only the fields you want to change. The response is the record as stored, with a new id when its name, type or content changed. ttl sets the TTL of every record with the recordโ€™s name and type. 404 when the record isnโ€™t on the domain (or has changed since its id was read), 422 when the changed record isnโ€™t valid.

Parameters

Field Type Required Description
name string No New record name
type string No New record type
content string No New record value
ttl integer No New TTL (60-86400)

Response

json
{
  "id": "b81e44c0d2a9f317",
  "name": "www.example.com.",
  "display_name": "www",
  "type": "A",
  "content": "5.6.7.8",
  "ttl": 300
}

Snagged on something?

Our sysadmins answer tickets around the clock.