Update RecordSet

Updates a RecordSet. This performs a delete of the old record, and inserts the new record.

HTTP REQUEST

PUT /zones/{zoneId}/recordsets/{recordSetId}

HTTP REQUEST PARAMS

name type required? description
zoneId string yes id of the zone where the recordset belongs
id string yes the id of the recordset being updated
name string yes the name of the recordset being updated
type string yes the type of recordset
ttl integer yes the TTL in seconds
records array of record data yes record data for recordset, see RecordSet Model

EXAMPLE HTTP REQUEST

{
  "id": "dd9c1120-0594-4e61-982e-8ddcbc8b2d21",
  "name": "already-exists",
  "type": "A",
  "ttl": 38400,
  "records": [
    {
      "address": "6.5.4.3"
    }
  ],
  "zoneId": "2467dc05-68eb-4498-a9d5-78d24bb0893c"
}

HTTP RESPONSE TYPES

Code description
202 Accepted - the update is valid and has been accepted for processing; the record set change resource is returned in the response body
400 Bad Request - the zone being updated is not active; typically because the connection information does not exist for the zone
401 Unauthorized - The authentication information provided is invalid. Typically the request was not signed properly, or the access key and secret used to sign the request are incorrect
403 Forbidden - The user does not have the access required to perform the action
404 Not Found - Zone or RecordSet not found
409 Conflict - There is an existing pending change against this record set
422 Unprocessable Entity

HTTP RESPONSE ATTRIBUTES

name type description
zone map contains information about the zone when the change was created
recordSet map contains the recordset model
updates map new data to overwrite current record set
userId string the user id that initiated the change
changeType string type of change requested (Create, Update, Delete); in this case Update
created string the time (GMT) the change was initiated
id string the id of the change. This is not the id of the recordset

EXAMPLE RESPONSE

{
  "zone": {
    "name": "vinyl.",
    "email": "test@test.com",
    "status": "Active",
    "created": "2017-02-23T14:52:44Z",
    "updated": "2017-02-23T15:12:33Z",
    "id": "2467dc05-68eb-4498-a9d5-78d24bb0893c",
    "account": "9b22b686-54bc-47fb-a8f8-cdc48e6d04ae",
    "shared": false,
    "acl": {
      "rules": [

      ]
    },
    "adminGroupId": "9b22b686-54bc-47fb-a8f8-cdc48e6d04ae",
    "latestSync": "2017-02-23T15:12:33Z"
  },
  "recordSet": {
    "type": "A",
    "zoneId": "2467dc05-68eb-4498-a9d5-78d24bb0893c",
    "name": "already-exists",
    "ttl": 38400,
    "status": "PendingUpdate",
    "created": "2017-02-23T15:12:41Z",
    "updated": "2017-02-23T15:12:41Z",
    "records": [
      {
        "address": "6.6.6.1"
      }
    ],
    "id": "dd9c1120-0594-4e61-982e-8ddcbc8b2d21",
    "account": "9b22b686-54bc-47fb-a8f8-cdc48e6d04ae"
  },
  "userId": "0215d410-9b7e-4636-89fd-b6b948a06347",
  "changeType": "Update",
  "status": "Pending",
  "created": "2017-02-23T15:12:41Z",
  "updates": {
    "type": "A",
    "zoneId": "2467dc05-68eb-4498-a9d5-78d24bb0893c",
    "name": "already-exists",
    "ttl": 38400,
    "status": "Active",
    "created": "2017-02-23T15:12:33Z",
    "records": [
      {
        "address": "6.6.6.6"
      }
    ],
    "id": "dd9c1120-0594-4e61-982e-8ddcbc8b2d21",
    "account": "9b22b686-54bc-47fb-a8f8-cdc48e6d04ae"
  },
  "id": "df69bc45-2942-4fb7-813c-4dd21cfad7fa"
}