Create a Record

Use this API call to create a new Record.

Requires the dns-manage permission.

Arguments
  • type
    object

    The type of this record.

    Show child fields
  • name
    string

    The name of the record.

Returns

Returns a record resource (the one you just created), otherwise returns an Error.

POST /v1/dns/zones/{ID}/records

Example Request
$ curl https://api.cycle.io/v1/dns/zones/5cb964ed4fde4d0001d05cc7/records/ \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-HUB-ID: HUB_ID"
\
-H "Content-Type: application/json" \
-d {"a":{"ip":"132.32.12.43"}} \
-X POST
Example Response
{
"data": {
"id": "6e43de0a78ecdb000129b8ec",
"hub_id": "5cc78aa0db2ab000014a8b98",
"creator": {
"type": "account",
"id": "5cc78aa0db2ab000014a8b98"
},
"zone_id": "5cc78aa0db2ab000014a8b98",
"name": "@",
"resolved_domain": "domain.com",
"type": {
"linked": {
"container_id": "6e43de0a78ecdb000129b8ec",
"features": {
"tls": {
"enable": true
}
}
}
},
"features": {
"certificate": {
"id": "5cc78aa0db2ab000014a8b98",
"generated": "2019-05-27T22:09:50.393Z",
"wildcard_child": true
}
},
"state": {
"changed": "2019-05-27T22:09:50.393Z",
"current": "live"
},
"events": {
"created": "2019-05-27T22:09:50.375Z",
"updated": "0001-01-01T00:00:00Z",
"deleted": "0001-01-01T00:00:00Z"
}
}
}