POST/sites/:siteSlug/domains (retired)
This legacy mutation is retired and returns HTTP 410. Use the team domain portfolio to verify ownership and manage exact-hostname assignments. The error includes portfolioUrl.
Migration
The request body is no longer processed and no Cloudflare hostname or routing record is created. Open the team domain portfolio at portfolioUrl from the 410 response.
Code examples
cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains" \
-H "Authorization: Bearer zyb_live_YOUR_API_KEY" \
-X POST \
-H "Content-Type: application/json" \
-d '{"domain":"www.myapp.com"}'JavaScript
const res = await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains`, {
method: "POST",
headers: {
Authorization: "Bearer zyb_live_YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ domain: "www.myapp.com" }),
});
const error = await res.json(); // 410 legacy_mutation_disabled
console.log(error.message, error.portfolioUrl);Base URL: https://www.zyberspace.com