Archive Agent
PUT
/api/v1/workflow/{workflow_id}/statusUpdate the status of a workflow (e.g., archive/unarchive). Args: workflow_id: The ID of the workflow to update request: The status update request Returns: The updated workflow
cURL example
curl -X PUT \
'http://localhost:8000/api/v1/workflow/{workflow_id}/status' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{}'Parameters
| Name | Location | Type | Description |
|---|---|---|---|
workflow_idrequired | path | integer | — |
authorization | header | object | — |
X-API-Key | header | object | — |
Request body
application/jsonView schema
{
"$ref": "#/components/schemas/UpdateWorkflowStatusRequest"
}Responses
200Successful Responseapplication/jsonView schema
{
"$ref": "#/components/schemas/WorkflowResponse"
}404Not found422Validation Errorapplication/jsonView schema
{
"$ref": "#/components/schemas/HTTPValidationError"
}