palbaseDocs

Palbase Machines · API

DELETE/machines/{name}/domains/{host}

Delete a machine's domain

Takes a domain away: it answers no more at once, and another environment may add it. One another domain redirects to is kept (409 domain_redirected_to): change that one's redirect first.

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

Path

namestring · requiredThe machine's name: lowercase letters, digits and dashes, starting with a letter and not ending with a dash, 32 at most.
hoststring · requiredThe domain.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/machines/<name>/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 project has no machine of this name

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 DeleteMachineDomain of machines's contract.