Update a workflow, or save a new version of its graph

Changes the name or description, and, when a graph is sent, validates it and saves it as the next version (latest_version + 1). It does not pin the version. At least one of name, description and graph is required. A change note belongs to the version a graph creates, so a non-empty change_note is accepted only together with graph: a request with one and no graph is a 400 and changes nothing, rather than a 200 that drops the note. The caller needs the workflow_graph update ability on the company.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params
string

Trimmed; 1 to 200 characters. Unique among the company's live workflows.

string
graph
object

The new version's graph. Its workflow_id must be absent or the workflow's own.

string

The note of the new version: why it was saved. At most 128 KiB (131072 bytes, not characters). Requires graph. Stored with the version in the same field a deploy fills from CHANGE.md, and returned as change_note by the workflow and by the version routes. The next version starts with an empty note, whatever this one carried.

Responses

400

The request was malformed or contained invalid parameters.

401

You are not authorized

403

You are forbidden from accessing this resource

404

The item you were looking for does not exist

409

Another live workflow of the company has the new name, or the graph's store nodes conflict with the company's datasets.

413

The request body is larger than 1 MiB.

500

An unexpected error was encountered.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json