Update which service a custom domain points to.
cURL
curl --request PATCH \ --url https://api.zo.computer/custom-domains/{domain} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "service_id": "<string>" } '
{ "domain": "<string>", "service_id": "<string>", "label": "<string>", "status": "pending_cname", "cname_target": "<string>", "active": true, "requested_at": "2023-11-07T05:31:56Z", "cname_verified_at": "2023-11-07T05:31:56Z", "active_at": "2023-11-07T05:31:56Z" }
Zo API key (zo_sk_...)
Successful Response
pending_cname
pending_ssl
active
error