v1
latestOpenAPI 3.0.32026-07-248519153.1 KBUpdate experiment status
Change the lifecycle status of an experiment. This is the single way to pause, stop, reactivate, archive, or mark success/fail via the API.
Side effects (same as cabinet):
- Transition to Active (2) sets start_at if empty and clears a stale past end_at.
- Transition to Success, Fail, Stop, or Archive (4–7) sets end_at if empty.
Cannot revert a non-draft experiment back to Draft (1).
patch/experiments/{id}
Path parameters
idinteger required
Headers
api_keystring required
Request body
Example request
{
"status": 2
}Response
Experiment updated
Example response
{
"success": true,
"experiment": {
"id": 1,
"project_id": 78,
"name": "Quiz A/B Test",
"slug": "quiz-ab-test",
"type": 1,
"start_at": "2024-01-15T10:00:00Z",
"end_at": "2024-02-15T10:00:00Z",
"status": 2,
"variants": [
{
"model_id": 123,
"name": "Variant A",
"percent": 50
}
],
"experiment_users_count": 150,
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
}