Skip to main content
POST
/
test-suites
/
{id}
/
runs
/
{runId}
/
cancel
Cancel Test Run
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"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Path Parameters

id
string<uuid>
required

Test suite ID

runId
string<uuid>
required

Test run ID

Response

Test run cancelled

data
object

A test run execution