palbaseDocs

Palbase Flags · API

POST/flags/experiments/{experiment_id}/stop

Stop an experiment

Stops a running experiment, at once: from the next read on its people get the flag's own value again; the flag stays as it was. Its results stay. Every reader is told (flags:<ref>).

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

Path

experiment_idstring (uuid) · requiredThe experiment's id.
curl
curl -X POST "https://<your-ref>.palbase.studio/flags/experiments/<experiment_id>/stop" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The experiment, stopped

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

404No such experiment (`experiment_not_found`)

409The experiment has ended (`experiment_ended`)

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 StopExperiment of flags's contract.