cURL
curl --request POST \ --url https://api.example.com/api/test-runs/{id}/cancel \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "reason": "<string>" } '
{ "message": "Test run cancelled successfully" }
Cancel a running or pending test run
cancelling
cancelled
Bearer <your-api-key>
curl -X POST \ "https://dash.empirical.run/api/test-runs/456/cancel" \ -H "Authorization: Bearer $EMPIRICALRUN_KEY"
curl -X POST \ "https://dash.empirical.run/api/test-runs/456/cancel" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $EMPIRICALRUN_KEY" \ -d '{ "reason": "Deployment rolled back" }'
Was this page helpful?