palbaseDocs

Palbase Machines · API

DELETE/domains/{host}

Delete one of the environment's own domains

Takes a domain away: it answers no more at once, and another environment may add it. The one the environment signs in at is kept (409 domain_signs_in): move sign-in first. The one its passkeys are bound to is kept while it has any (409 domain_holds_passkeys, saying how many): they sign in only there.

Called by your server, with the project's secret key.

Path

hoststring · requiredThe domain.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/domains/<host>" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

204Deleted

400Validation failed or a required field is missing

401Missing or invalid API key

403Not the project's secret key

404The environment has no domain of this host

409The project already has a machine of this name, or has as many machines as it may

429Over the project's request limit, or its machine time for this period is used up

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation DeleteEnvironmentDomain of machines's contract.