Create Test Run
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 example
curl -X POST \
'http://localhost:8000/api/v1/workflow/{workflow_id}/runs' \
-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/CreateWorkflowRunRequest"
}Responses
200Successful Responseapplication/jsonView schema
{
"$ref": "#/components/schemas/CreateWorkflowRunResponse"
}404Not found422Validation Errorapplication/jsonView schema
{
"$ref": "#/components/schemas/HTTPValidationError"
}