Skip to main content

Stop Experiment Serving

POST/v2/project/{project_key}/experiment/{test_id}/stop-serving

Stop serving the winner at 100% on an experiment. Clears serving_variant_id so visitors are no longer forced to the winning variant.

Path parameters

ParameterDescription
project_keyYour project's API key
test_idThe numeric experiment ID

Request body

No body fields are required. Send {} or omit the body.

Example

curl -X POST "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/experiment/1234/stop-serving" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'

Success response

{
"success": true,
"test_id": 1234,
"serving_variant_id": null,
"is_serving": false,
"message": "Serving stopped. Visitors are no longer forced to the winner variant."
}

Error responses

StatusMeaning
400Invalid test_id
401Invalid or missing API key
404Experiment not found
409Experiment is not currently serving a winner
Related

To start serving again, use Serve Experiment Winner.