Ugrás a fő tartalomhoz

Frissítési ügynök

PUT/api/v1/workflow/{workflow_id}

Update an existing workflow. Args: workflow_id: The ID of the workflow to update request: The update request containing the new name and workflow definition Returns: The updated workflow Raises: HTTPException: If the workflow is not found or if there's a database error

cURL példa

curl -X PUT \
  'http://localhost:8000/api/v1/workflow/{workflow_id}' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Paraméterek

NévHelyTípusLeírás
workflow_idkötelezőpathinteger
authorizationheaderobject
X-API-Keyheaderobject

Kérés törzse

application/json
Séma megtekintése
{
  "$ref": "#/components/schemas/UpdateWorkflowRequest"
}

Válaszok

200Successful Response
application/json
Séma megtekintése
{
  "$ref": "#/components/schemas/WorkflowResponse"
}
404Not found
422Validation Error
application/json
Séma megtekintése
{
  "$ref": "#/components/schemas/HTTPValidationError"
}