Skip to main content
POST
Validate a workflow definition

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Scopes

full_access
PersonalAccessTokenAuth
full_access
WorkspaceApiKeyAuth
full_access
WorkspaceApiKeyBearerAuth

Headers

X-Active-Branch-Id
string

ID of the branch the editor shows. Used when branch_id is omitted, for users who work on protected-main branches.

Path Parameters

app_id
string
required

ID of the app whose workflows you want to work with.

Body

application/json
definition
Definition · object
required

The CNCF Serverless Workflow v1.0 document to check.

Example:
trigger_type
string | null

The trigger type the definition will run under, so the save rules that depend on it are checked too. Ignored when trigger is sent, which carries its own config.trigger_type.

Example:

"scheduled"

trigger
Trigger · object | null

The trigger you plan to create the workflow with, in the same shape as trigger on Create workflow. When sent, the trigger and its condition are checked with the rules create applies to a new workflow, and a refusal comes back in errors with the code and message create would return. Leave it out to check only the definition.

Example:

Response

The verdict. Check valid, not the status code.

valid
boolean
required

Whether the definition, and the trigger when you sent one, can be saved as-is.

Example:

true

warnings
Warnings · object[]

Notices that don't block saving, same shape as errors.

Example:
errors
Errors · object[]

What is wrong with the definition or trigger, one entry per problem, each with a code, a human-readable message, and a location pointing at the problem, empty when the problem has no single place. Empty when valid is true.

Example:
supported_task_types
string[]

The fixed set of task types a definition's do steps can use, call, switch, or wait. This doesn't vary by app.

Example:
available_activities
string[]

The activities a call task on this app can invoke. This varies by app.

Example: