Docs Home Return to Homepage
Get Started Login

Update Record

On this page
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.