Stop Experiment Serving
POST
/v2/project/{project_key}/experiment/{test_id}/stop-servingStop serving the winner at 100% on an experiment. Clears serving_variant_id so visitors are no longer forced to the winning variant.
Path parameters
| Parameter | Description |
|---|---|
project_key | Your project's API key |
test_id | The 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
| Status | Meaning |
|---|---|
400 | Invalid test_id |
401 | Invalid or missing API key |
404 | Experiment not found |
409 | Experiment is not currently serving a winner |
Related
To start serving again, use Serve Experiment Winner.