Skip to main content
PATCH
Rename a workflow, turn it on or off, or set its settings
Changes what a workflow is set to, never its steps. Send only the fields you change. To change its steps, use Replace a workflow’s steps. Turning a workflow on sets up its start: a timed start is scheduled, and an app event is watched on the computer’s own sign-in of that app. When it can’t run yet, turning it on answers 422 with code: "not_ready" and a to_fix list, and nothing changes. Any other change that leaves it unable to run turns it off, and the answer says turned_off: true.

Path parameters

string
required
The workflow’s id, like morning-report.

Headers

string
The version you read. A newer version answers 409 with code: "version_conflict".
string
Who is writing, at most 30 characters, like Claude Code. The canvas names you on the change.

Request body

boolean
true to turn it on, false to turn it off.
string
A new name, at most 40 characters. Its id doesn’t change.
object
What it asks for once, name to value, like { "channel": "sales" }. Only the names you send change. "" or null takes one out.
string | null
The UUID of the computer its steps run on, one of yours (from List workspaces or Get workspace). null or "" takes it off. Picking one takes a key with Control write and AI write.
string
An IANA zone its times and date words are read in, like America/New_York. A timed start needs one.

Response

The workflow as kept, in the same shape Get a workflow answers, with the new version in version and the ETag header. turned_off: true appears when this change turned it off.

Example

Replace $COMPUTER_ID with the computer’s UUID.

It can’t run yet (422)

When the missing piece is an app to connect on its computer, the body also carries needs, the apps to connect.

Errors

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Headers

If-Match
string

The version you read (GET’s version, or its ETag).

X-Agent
string

Who you are, as the canvas names you (like Claude Code).

Maximum string length: 30

Path Parameters

id
string
required
Pattern: ^[a-z0-9-]{1,60}$

Body

application/json
name
string
Maximum string length: 40
on
boolean
settings
object

Only the names sent change; "" or null takes one out.

computer
string | null

The computer its steps run on (its UUID, from List workspaces or Get workspace); null takes it off.

time_zone
string

An IANA zone, like America/New_York.

Response

The workflow, as kept.

id
string
required
Pattern: ^[a-z0-9-]{1,60}$
name
string | null
required
on
boolean
required

Whether its start runs it. It is on only while it can run.

version
integer
required

Send it as If-Match on a write.

lines
string
required

The workflow, one JSON object per step, the start first (https://www.orgo.ai/workflows.md).

settings
object
required

What it asks for once, name to value.

to_fix
string[]
required

What still has to be done before it can run, in the person’s words. Empty: ready.

problems
object[]
required
turned_off
boolean

This write left it unable to run, so it was turned off.

dropped
string[]

What of the lines sent was left out or rewritten.