Stop a running test run of an agent
POSThttps://platform.docana.com/api/v1/agents/:agentId/test-runs/:runId/stop/
Only runs with status RUNNING can be stopped. Stopping aborts the agent executions of the run thread, then marks the run as ERROR with the reason Cancelled by user. applicationId is a required query parameter.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The test run was cancelled
Missing applicationId, run belongs to another agent, or run is not running
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Test run not found
Unexpected server error.