curl --request POST \
--url https://api.revring.ai/v1/test-suites/{id}/runs/{runId}/cancel \
--header 'x-api-key: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testSuiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "queued",
"totalTests": 123,
"passedTests": 123,
"failedTests": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"attempts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseName": "<string>",
"attemptNumber": 123,
"createdAt": "2023-11-07T05:31:56Z",
"callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inboundCallId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": "pass",
"reasoning": "<string>",
"transcript": [
{}
],
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}
]
}
}Cancel a running or queued test run. Already completed or cancelled runs cannot be cancelled.
curl --request POST \
--url https://api.revring.ai/v1/test-suites/{id}/runs/{runId}/cancel \
--header 'x-api-key: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testSuiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "queued",
"totalTests": 123,
"passedTests": 123,
"failedTests": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"attempts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseName": "<string>",
"attemptNumber": 123,
"createdAt": "2023-11-07T05:31:56Z",
"callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inboundCallId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": "pass",
"reasoning": "<string>",
"transcript": [
{}
],
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}
]
}
}