Streaming operation on the management side workflow
POST/api/workflows/:workflowName/run/stream
Workflow Omit the entry when running the target version of the default entry;Conversation does not accept the entry field. Server will fix the exact version and verify the entry before sending the NDJSON response header. Unknown entry returns HTTP 400 JSON, Do not create run. Execution errors after starting a streaming response continue with the NDJSON error event. Kanban calls this interface to return 409 and does not create a run record.
Request
Responses
- 200
- 400
- 409
NDJSON stream, each line is runtime event, run_result, or error;runtime event contains timer_started / timer_finished, which is used to display business timing cards.
The entry does not exist, the Conversation request carries the entry field, or the request field format is invalid; the response is JSON and NDJSON has not been started.
workflow-code standard error response.