Docs

Update Workflow

Update the Workflow name or replace its rules. Replacing rules requires the current revision. A changed definition creates a new revision; unchanged rules and name-only edits preserve it. Existing Assets and Uploads keep their selected revision until a ready Asset explicitly updates to the latest revision. Archived Workflows cannot be updated.

PATCH
/workflows/{workflowId}

Authorization

Authorization
header
string
required

Enter the project access token with the Bearer prefix, e.g. "Bearer project_access_token"

Path Parameters

workflowId
string
required

ID of the Workflow.

Bodyapplication/json
expected_revision
integer

ExpectedRevision specifies the current Workflow revision when replacing rules. The update returns a conflict if it no longer matches. Required when rules is provided. Must be at least 1.

Required range: x >= 1
name
string

Name specifies the Workflow name. Use 1 to 128 characters.

rules
object[]

Rules specifies the event subscriptions and actions in this definition. Provide exactly one asset.ready rule and up to 15 connected rules, with at most 32 actions and 65536 encoded bytes across all rules. Array order affects display only. Replaces the complete definition and requires schema_version and expected_revision. Existing Assets and Uploads keep their pinned revision.

schema_version
integer

SchemaVersion specifies the Workflow definition format. The supported version is 1. Required when rules is provided.

Available options:
1

Responses

Update Workflow