Palbase Machines · API
/domains/{host}Choose where the environment signs in
Has the environment sign its people in at one of its own domains — an active one (409 domain_not_active otherwise) — or, sign_in false, at its own address again. Choosing one takes sign-in from the domain it was at. It holds at once: a social sign-in begun after it sends its provider back to this domain's callback, which the provider must know first (its redirect URIs, Apple's return URLs), and the environment's emails and pages name it. While the domain does not answer, the environment signs in at its own address.
Called by your server, with the project's secret key.
Path
hoststring · requiredThe domain.Request body
sign_inboolean · requiredtrue: the environment signs in at this domain, and at no other of its own; false: at its own address.curl -X PATCH "https://<your-ref>.palbase.studio/domains/<host>" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"sign_in":false}'Responses
200The domain
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 SetEnvironmentSignInDomain of machines's contract.