ByCloud Docs
GuidesCLIAPISDK
patch/v1/zones/{zone_id}/recordsets/{recordset_id}

Update recordset

Update a recordset

Path Parameters

zone_id

string<uuid>required

path

DNS Zone ID

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

recordset_id

string<uuid>required

path

DNS Recordset ID

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

Request Body

required

Content-Type: application/json

description

stringoptional

ttl

integeroptional

nullable

records

arrayoptional

Responses

202

Recordset update 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

Resource not found

Content-Type: application/json

error

objectrequired
500

Internal server error

Content-Type: application/json

error

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