v1

latestOpenAPI 3.1.12026-07-17111158225.7 KB
zones

Update a zone record

Updates the zone record details.

patch/{account}/zones/{zone}/records/{zonerecord}

Path parameters

accountinteger required

The account id

zonestring required

The zone name

zonerecordinteger required

The zone record id

Request body

namestring
contentstring
ttlinteger

The Time To Live (TTL) value for the entry, in seconds.

priorityinteger
regionsZoneRecordRegion[]
integrated_zonesinteger[]

Example request

{
  "content": "mxb.example.com",
  "ttl": 3600,
  "priority": 20,
  "regions": [
    "global"
  ]
}

Response

Successfully updated zone record.

Example response

{
  "data": {
    "id": 1,
    "zone_id": "example.com",
    "parent_id": null,
    "name": "",
    "content": "ns1.dnsimple.com admin.dnsimple.com 1458642070 86400 7200 604800 300",
    "ttl": 3600,
    "priority": null,
    "type": "SOA",
    "regions": [
      "global"
    ],
    "system_record": true,
    "created_at": "2016-03-22T10:20:53Z",
    "updated_at": "2016-10-05T09:26:38Z"
  }
}