Update an 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"
}
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
AI workflow updated successfully
The response is of type object
.
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"
}