ByCloud Docs
GuidesCLIAPISDK
post/v1/zones/{zone_id}/recordsets

Create recordset

Create a new recordset in a DNS zone

Path Parameters

zone_id

string<uuid>required

path

DNS Zone ID

Example: "550e8400-e29b-41d4-a716-446655440000"

Request Body

required

Content-Type: application/json

name

stringrequired

Record name (FQDN, must end with a dot)

description

stringoptional

type

stringrequired

Enum: "A", "AAAA", "CNAME", "MX", "NS", "PTR", "SOA", "SPF", "SRV", "SSHFP", "TXT", "CAA", "NAPTR"

ttl

integeroptional

nullable

records

arrayrequired

Responses

202

Recordset creation initiated

Content-Type: application/json

recordset

objectoptional
400

Invalid request parameters

Content-Type: application/json

error

objectrequired
401

Authentication required or token invalid

Content-Type: application/json

error

objectrequired
404

Zone not found

Content-Type: application/json

error

objectrequired
409

Recordset already exists

Content-Type: application/json

error

objectrequired
500

Internal server error

Content-Type: application/json

error

objectrequired
curl -X POST "https://api.spo1.mycloud.com/v1/zones/550e8400-e29b-41d4-a716-446655440000/recordsets" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "www.example.com.",
"description": "string",
"type": "A",
"ttl": 1,
"records": [
"192.168.1.10"
]
}'