Update Workflow

Update a workflow's steps, status or details

Published ·Updated

PATCH
/v1/workflows/{id}
curl -X PATCH "https://api.orshot.com/v1/workflows/<ID>" \
  -H "Authorization: Bearer <ORSHOT_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "<NAME>",
    "description": "<DESCRIPTION>",
    "steps": [],
    "status": "<STATUS>"
  }'

Overview#

Update any part of a workflow: rename it, replace its steps, or change its status (this is also how you activate, pause and archive). Only the fields you send are changed. PUT works identically to PATCH.

Scheduling is server-managed: when steps or status change, the next run time is recomputed for you.

Endpoint
https://api.orshot.com/v1/workflows/:id

Path Parameters#

ParameterTypeRequiredDescription
idIntegerYesThe unique ID of the workflow

Request Body#

All fields are optional.

ParameterTypeDescription
nameStringNew name, up to 200 characters
descriptionStringNew description
stepsArrayFull replacement steps array (validated the same way as create)
statusStringdraft, active, paused or archived. Activating enforces the same rules as create
metadataObjectMerged into the stored metadata. Server-managed keys (health, poll, share, schema) are ignored

Request#

JavaScript
await fetch("https://api.orshot.com/v1/workflows/44", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer <ORSHOT_API_KEY>",
  },
  body: JSON.stringify({
    status: "active",
  }),
});
JSON
{
  "workflow": {
    "id": 44,
    "name": "Renders from Google Sheets",
    "status": "active",
    "next_run_at": "2026-07-11T09:10:00.000Z",
    "...": "..."
  },
  "warnings": []
}

Error Responses#

Invalid Workflow (400)#

JSON
{
  "error": "Invalid workflow",
  "details": ["step 2: unknown node \"rendr\""]
}

Missing Connection (400)#

Returned when activating a workflow whose provider connections are not connected yet.

JSON
{
  "error": "Connect Google Drive before activating — this workflow needs it to run.",
  "code": "missing_connection"
}

Active Workflow Limit (403)#

JSON
{
  "error": "Active workflow limit reached: your plan allows 5 active workflows across your workspaces. Pause another workflow or upgrade to activate this one."
}

Incompatible Steps (409)#

Returned when a step was saved at a node version that cannot be upgraded to the current one. Rebuild that step using the node catalog (GET /v1/workflows/nodes).

JSON
{
  "error": "This workflow cannot be safely edited or run by this Orshot deployment",
  "code": "workflow_version_incompatible",
  "details": ["Node \"render\" cannot be upgraded from version 1 to 2"],
  "compatibility": [
    {
      "code": "missing_node_migration",
      "nodeKey": "render",
      "canonicalKey": "render",
      "storedVersion": 1,
      "supportedVersion": 2,
      "message": "Node \"render\" cannot be upgraded from version 1 to 2"
    }
  ]
}

Workflow Not Found (404)#

JSON
{
  "error": "Not found"
}

Notes#

  • Edits to an already-active workflow (a rename, a step tweak) are never blocked by activation rules; only the flip from another status to active is gated.
  • Sharing cannot be changed here; use the Update Workflow Sharing endpoint.

Rate Limits#

  • 60 requests per minute per workspace
Was this page helpful?

Ready to automate?

Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.

Get your API key
  • Image, PDF and video generation via API
  • Visual editor with AI and smart layouts
  • Zapier, Make, MCP and 40+ integrations
  • White-label embed for your own app
  • 100 free credits a month, no credit card required