Skip to main content
PATCH
/
api
/
workflows
/
{id}
Update a workflow
curl --request PATCH \
  --url https://app.puffle.ai/api/workflows/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "trigger_config": {}
}
'
{
  "workflow": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "status": "draft",
    "trigger_config": {},
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Overview

Partial update for workflow metadata — name, description, or trigger_config. Nodes and edges are owned by the graph endpoint and can’t be changed via PATCH; use updateWorkflowNodes for those.

AI agent notes

Graph is separate. This endpoint intentionally can’t modify nodes or edges. If you need to change the flow, use Bulk save workflow nodes + edges.trigger_config is normally auto-synced. When you save the graph via updateWorkflowNodes, the server reads the signal_trigger node’s config and mirrors it onto the parent workflow. Setting trigger_config here directly is unusual — prefer editing the trigger node.Related: Get a workflow, Delete a workflow.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Workflow UUID.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
name
string
description
string | null
trigger_config
object

Response

Workflow updated.

workflow
object
required