Change a domain's settings
Turns auto-renew on or off and moves a registered domain between Automatic DNS (`nameservers: null`), Cloady's nameservers (ns1 and ns2.cloady.io) and your own nameservers, which stop Cloady's records answering once they propagate. Moving between Automatic DNS and Cloady's nameservers copies the domain's records across first. `dnssec` signs a zone on Cloady's nameservers; publish the DS record from getWorkspaceDomain at the registrar to finish, and remove it there before turning DNSSEC off. Needs the developer role.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
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 PATCH "https://example.com/api/workspaces/string/domains/string" \ -H "Content-Type: application/json" \ -d '{}'{ "domain": "string", "kind": "registered", "dns": "registrar", "verified": true, "verification": { "name": "string", "value": "string" }, "zoneTaken": true, "nameservers": [ "string" ], "registration": { "expiresAt": "string", "autoRenew": true, "renewal": -9007199254740991, "privacy": true, "locked": true, "glue": [ { "host": "string", "ips": [ "string" ] } ] }, "dnssec": { "enabled": true, "ds": [ { "keyTag": -9007199254740991, "algorithm": -9007199254740991, "digestType": -9007199254740991, "digest": "string" } ] }, "transfer": { "direction": "in", "status": "pending", "startedAt": "string", "registrar": "string", "error": "string", "price": -9007199254740991, "detail": "string", "paymentIntentId": "string", "refund": "pending", "submitted": true }, "transferPrice": -9007199254740991}Get a domain's settings GET
One domain of the workspace as the Domains tool shows it: whether it is registered here, where its records are served, its nameservers, renewal, WHOIS privacy and transfer lock, child nameservers, DNSSEC, ownership verification and any transfer in progress. `domain` is a registered or custom domain's zone, like example.com, or an app's own address.
Remove a domain no app uses DELETE
Removes a custom domain that no app serves from the workspace. A domain registered through Cloady stays (it is a registration), and one an app serves is detached in that app's settings first. Needs the developer role.