zones

Create Zone Record

post/zones/{zone_id}/records

Request

Path parameters

zone_idinteger required

Request body

typestring
namestring
valuestring
ttlinteger

Response

Successful Response

messagestring
dataobject

Example response

{
  "message": "Success",
  "data": {
    "id": 6,
    "created": "2022-02-18T16:49:40.000Z",
    "updated": "2022-02-18T16:49:40.000Z",
    "name": "newdomain.com",
    "records": [
      {
        "id": 37,
        "zoneId": 6,
        "primary": false,
        "type": "A",
        "name": "www",
        "value": "199.16.172.38",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 3600,
        "siteId": 1,
        "created": "2022-02-18T16:49:40.000Z"
      },
      {
        "id": 38,
        "zoneId": 6,
        "primary": false,
        "type": "A",
        "name": "www",
        "value": "199.16.173.236",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 3600,
        "siteId": 1,
        "created": "2022-02-18T16:49:40.000Z"
      },
      {
        "id": 39,
        "zoneId": 6,
        "primary": false,
        "type": "CNAME",
        "name": "newsite2",
        "value": "newsite2.",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 0,
        "siteId": null,
        "created": "2022-02-21T17:21:57.000Z"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.