Tesztfutás létrehozása
POST
/api/v1/workflow/{workflow_id}/runsCreate a new workflow run when the user decides to execute the workflow via chat or voice Args: workflow_id: The ID of the workflow to run request: The create workflow run request user: The user to create the workflow run for
cURL példa
curl -X POST \
'http://localhost:8000/api/v1/workflow/{workflow_id}/runs' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{}'Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workflow_idkötelező | path | integer | — |
authorization | header | object | — |
X-API-Key | header | object | — |
Kérés törzse
application/jsonSéma megtekintése
{
"$ref": "#/components/schemas/CreateWorkflowRunRequest"
}Válaszok
200Successful Responseapplication/jsonSéma megtekintése
{
"$ref": "#/components/schemas/CreateWorkflowRunResponse"
}404Not found422Validation Errorapplication/jsonSéma megtekintése
{
"$ref": "#/components/schemas/HTTPValidationError"
}