Cloady Docs
API ReferenceEndpointsWorkspaces

Change a DNS record

Replaces a record's name, type, content, TTL and priority under the same rules as createDnsRecord. Answers 409 for a record Cloady manages. Needs the developer role.

PUT
/api/workspaces/{workspaceSlug}/domains/{domain}/records/{recordId}
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
domain*string
recordId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/workspaces/string/domains/string/records/string" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "type": "A",    "content": "string"  }'
{  "record": {    "id": "string",    "name": "string",    "type": "string",    "content": "string",    "ttl": -9007199254740991,    "prio": -9007199254740991,    "managed": true  }}