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>",
    "description": "<string>",
    "definition": {
      "nodes": [
        {}
      ],
      "edges": [
        {}
      ]
    }
  }
}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "status": "draft",
    "lock_version": 123,
    "message_debounce_seconds": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "execution_count": 1,
    "last_executed_at": "2023-11-07T05:31:56Z"
  }
}

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