Skip to main content

Archive Agent

PUT/api/v1/workflow/{workflow_id}/status

Update 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

NameLocationTypeDescription
workflow_idrequiredpathinteger
authorizationheaderobject
X-API-Keyheaderobject

Request body

application/json
View schema
{
  "$ref": "#/components/schemas/UpdateWorkflowStatusRequest"
}

Responses

200Successful Response
application/json
View schema
{
  "$ref": "#/components/schemas/WorkflowResponse"
}
404Not found
422Validation Error
application/json
View schema
{
  "$ref": "#/components/schemas/HTTPValidationError"
}