POST
/
apps
/
{app_id}
/
workflows
/
{workflow_id}
/
tests
curl --request POST \
  --url https://api.withcortex.ai/apps/{app_id}/workflows/{workflow_id}/tests \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "input": {},
  "input_default": {},
  "expectations": [
    {
      "name": "<string>",
      "script": "<string>",
      "output": "<any>",
      "status": "PASSED"
    }
  ],
  "workflow_id": "<string>",
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25"
}

Path Parameters

app_id
string
required
workflow_id
string
required

Body

name
string
required

Response

200 - application/json
id
string
required
name
string
required
workflow_id
string
required
created_at
string | null
required
updated_at
string | null
required
input
object | null
input_default
object | null
expectations
object[]