Skip to main content

Change an experiment's status

POST 

/projects/:project/experiments/:experiment/change-status

Starts, pauses, resumes, stops or archives a test, after the same checks the dashboard's own buttons make. One call takes all five, named in action.

The action is named rather than the status assigned, because start and resume both end in running and are not the same thing. Starting freezes the test's metric definitions, copies the project's guardrails onto it and sets the day it started. Resuming does none of that.

Nothing here takes a test back to draft. Once visitors have been counted against a shape, un-starting it would leave a report nobody can read. To cancel a scheduled test, clear scheduled_start_at with Update an experiment instead.

Needs a publisher key.

Request​

Responses​

The test, in its new status.