palbaseDocs

Palbase Flags · API

POST/flags/templates/activation

Turn publishing on

Turns publishing on, one way: the live flags become version 1, and from then on definitions change only through a published draft (a direct write is refused, 409 publish_required). Turning it on again answers the active version.

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

curl
curl -X POST "https://<your-ref>.palbase.studio/flags/templates/activation" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

200The active version

400The request is malformed, or a definition or a value breaks a flag's rules (the error names which)

401No key, or not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key

415A template request is application/json

429The project's request rate, or its flag reads for the period under its quota, are used up; Retry-After says when to try again

503The platform could not answer now; retrying is safe (Retry-After)

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

Operation ActivateTemplates of flags's contract.