Skip to main content
PATCH
/
workflows
/
{workflow_id}
Update workflow
curl --request PATCH \
  --url https://api.kapso.ai/platform/v1/workflows/{workflow_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "workflow": {
    "name": "<string>",
    "slug": "inbound-support",
    "description": "<string>",
    "message_debounce_seconds": 123,
    "lock_version": 123,
    "definition": {
      "nodes": [
        {
          "id": "send_intro",
          "position": {
            "x": 360,
            "y": 120
          },
          "data": {
            "config": {},
            "display_name": "<string>"
          },
          "type": "flow-node"
        }
      ],
      "edges": [
        {
          "source": "start",
          "target": "send_intro",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "label": "next",
          "type": "default",
          "flow_condition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ]
    }
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "slug": "inbound-support",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "lock_version": 123,
    "message_debounce_seconds": 123,
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "execution_count": 1,
    "last_executed_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.kapso.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Path Parameters

workflow_id
string<uuid>
required

Workflow identifier

Body

application/json
workflow
object
required

Response

Workflow updated successfully

Single workflow response

data
object
required