Update Workflow PATCH
Overview
Updates an existing workflow's name and/or description.
Endpoint URL
PATCH /api/workflows/:workflowId
Endpoint Data
Example Request
curl -X PATCH "http://localhost:3026/api/workflows/550e8400-e29b-41d4-a716-446655440000" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-b cookies.txt \
--data '{
"name": "Updated Research Workflow"
}'
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"userId": "user-123",
"name": "Updated Research Workflow",
"description": "Automated research and summarization workflow",
"steps": [],
"createdAt": "2024-02-04T10:00:00.000Z",
"updatedAt": "2024-02-04T14:00:00.000Z"
}
}
Response Fields
| Field |
Type |
Description |
id |
String (UUID) |
Workflow identifier |
userId |
String |
Owner user ID |
name |
String |
Updated workflow name |
description |
String |
Updated workflow description |
steps |
Array |
Workflow steps |
createdAt |
String |
ISO 8601 creation timestamp |
updatedAt |
String |
ISO 8601 last update timestamp |
Error Responses
| Status Code |
Error |
Description |
400 |
Bad Request |
Invalid request body or no fields provided |
401 |
Unauthorized |
Invalid or missing session |
403 |
Forbidden |
Cannot update another user's workflow |
404 |
Not Found |
Workflow does not exist |