Skip to main content
PATCH
/
ai-workflows
/
{workflow_id}
Update AI Workflow
curl --request PATCH \
  --url https://api.wacht.dev/ai-workflows/{workflow_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "trigger_type": "manual",
  "steps": [
    {}
  ],
  "is_active": true
}'
{
  "id": "<string>",
  "name": "Customer Onboarding Workflow",
  "description": "<string>",
  "trigger_type": "webhook",
  "steps": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "agent",
      "config": {}
    }
  ],
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

workflow_id
string
required

Body

application/json
name
string
description
string
trigger_type
enum<string>
Available options:
manual,
webhook,
schedule,
event
steps
object[]
is_active
boolean

Response

id
string
name
string
Example:
description
string
trigger_type
enum<string>
Available options:
manual,
webhook,
schedule,
event
Example:
steps
object[]
is_active
boolean
Example:
created_at
string<date-time>
updated_at
string<date-time>