POST
/
apps
/
{app_id}
/
workflows
/
{workflow_id}
/
tests
/
{test_id}
/
cancel
curl --request POST \
  --url https://api.withcortex.ai/apps/{app_id}/workflows/{workflow_id}/tests/{test_id}/cancel
{
  "id": "<string>",
  "name": "<string>",
  "status": "PASSED",
  "input": {},
  "input_default": {},
  "input_context": {},
  "expectations": [
    {
      "key": "<string>",
      "name": "<string>",
      "expectation_id": "<string>",
      "script": "<string>",
      "output": "<any>",
      "output_logs": [
        "<any>"
      ],
      "status": "PASSED"
    }
  ],
  "expectations_passing_count": 123,
  "expectations_failing_count": 123,
  "workflow_id": "<string>",
  "run": {
    "id": "<string>",
    "result": "<any>",
    "input": {},
    "output": {},
    "status": "RUNNING",
    "origin": "WORKFLOW",
    "error": "<string>",
    "started_at": "2023-12-25",
    "ended_at": "2023-12-25",
    "app_id": "<string>",
    "workflow_app_id": "<string>",
    "workflow_id": "<string>",
    "workflow_version_draft": {
      "key": "<string>",
      "input": {},
      "input_default": {},
      "input_options": {
        "display": {
          "field": "inline",
          "container": "grid",
          "hidden": true
        }
      },
      "steps": [
        {
          "type": "note",
          "key": "<string>",
          "conditional": "<string>",
          "loop": "<string>",
          "throw_on_error": true,
          "input_connected": true,
          "destinations": [
            "<string>"
          ],
          "position": [
            123
          ],
          "size": [
            101
          ],
          "note": "<string>"
        }
      ]
    },
    "workflow_version": {
      "id": "<string>",
      "app_id": "<string>",
      "workflow_id": "<string>",
      "description": "<string>",
      "version": 123,
      "rollback_version": 123,
      "notes": "<string>",
      "created_by": {
        "id": "<string>",
        "name": "<string>"
      },
      "created_at": "2023-12-25",
      "key": "<string>",
      "input": {},
      "input_default": {},
      "input_options": {
        "display": {
          "field": "inline",
          "container": "grid",
          "hidden": true
        }
      },
      "steps": [
        {
          "type": "note",
          "key": "<string>",
          "conditional": "<string>",
          "loop": "<string>",
          "throw_on_error": true,
          "input_connected": true,
          "destinations": [
            "<string>"
          ],
          "position": [
            123
          ],
          "size": [
            101
          ],
          "note": "<string>"
        }
      ]
    },
    "collection_id": "<string>",
    "record_id": "<string>",
    "version": 123,
    "usage": {
      "total": 123,
      "steps": {}
    },
    "created_at": "2023-12-25",
    "updated_at": "2023-12-25"
  },
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25"
}

Path Parameters

app_id
string
required

The ID of the app

workflow_id
string
required

The ID of the workflow

test_id
string
required

The ID of the test

Query Parameters

verbose
enum<string>[]
Available options:
all

Response

200 - application/json

Detailed information about a workflow test

id
string
required

Unique identifier for the workflow test

name
string
required

Name of the workflow test

status
enum<string>
required

Status of the workflow test

Available options:
DRAFT,
CANCELLED,
RUNNING,
FAILED,
PASSED
expectations_passing_count
number
required

Number of passing expectations

expectations_failing_count
number
required

Number of failing expectations

workflow_id
string
required

Identifier of the associated workflow

run
object
required

Run details of the workflow test

created_at
string | null
required

Creation date of the workflow test

updated_at
string | null
required

Last update date of the workflow test

input
object | null

Input values for the workflow test

input_default
object | null

Default input values for the workflow test

input_context
object | null

Default input values for the workflow test

expectations
object[]

List of expectations that will be executed for the workflow test