Backend API
Update an AI workflow
cURL
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" }
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
manual
webhook
schedule
event
AI workflow updated successfully
"Customer Onboarding Workflow"
"webhook"
Show child attributes
true