workflow_publish
ManagementPublish Workflow
Publish a workflow: compile its stored editor_info into a runnable flow and flip status to "ready".
Mirrors the webapp's "Convert to App" step. Use this after workflow_create / workflow_update persisted a draft (editor_info + inputs) so workflow_run can invoke it. The workflow stays in its current state if validation or compilation fails — error cases surface the compiler's message.
Args:
- workflow_id: required
- team_id, project_id: required for OAuth callers
Returns: the published (ready) workflow record.
Example: "Make this workflow runnable" -> workflow_id="workflow_xxx"
open-world
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| workflow_id | string | ✓ | Workflow ID. |
| team_id | string | — | Team ID. Required if user belongs to multiple teams. |
| project_id | string | — | Project ID to scope the operation to. |
| response_format | enum(json | markdown) | json | Output format: 'json' for structured data, 'markdown' for human-readable text. |