post
/v1/zones/{zone_id}/recordsetsCreate recordset
Create a new recordset in a DNS zone
Path Parameters
zone_id
string<uuid>requiredpath
DNS Zone ID
Example: "550e8400-e29b-41d4-a716-446655440000"
Request Body
requiredContent-Type: application/json
name
stringrequiredRecord name (FQDN, must end with a dot)
description
stringoptionaltype
stringrequiredEnum: "A", "AAAA", "CNAME", "MX", "NS", "PTR", "SOA", "SPF", "SRV", "SSHFP", "TXT", "CAA", "NAPTR"
ttl
integeroptionalnullable
records
arrayrequiredResponses
202
Recordset creation initiated
Content-Type: application/json
recordset
objectoptional400
Invalid request parameters
Content-Type: application/json
error
objectrequired401
Authentication required or token invalid
Content-Type: application/json
error
objectrequired404
Zone not found
Content-Type: application/json
error
objectrequired409
Recordset already exists
Content-Type: application/json
error
objectrequired500
Internal server error
Content-Type: application/json
error
objectrequiredcurl -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"]}'