Skip to main content
PUT
Create or replace a workflow

Authorizations

Authorization
string
header
required

Use your app's API key as the username, and leave the password blank

Path Parameters

key
string
required

The workflow's stable key

Pattern: ^[a-z][a-z0-9_]{0,63}$

Body

application/json
definition
QuBeSync workflow chart · object
required

A workflow is one JSON document: a Harel statechart whose states queue QuickBooks requests, pause for a decision from the calling app, or transform data. Qube.Workflows.Chart.validate/1 is the source of truth; this schema is documentation and a first-pass check. A run takes at most 500 transitions, then fails with fault transition_limit: a paginating loop costs about two per page, so about 250 pages a run.

description
string
name
string
notes
string

A note recorded in the history beside the version publish: true creates. Ignored without it.

publish
boolean

true publishes the working copy as the next version in the same call; false unpublishes. Without it, only the working copy changes.

Response

The workflow was replaced

data
object