workflow_publish

Management

Publish 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

NameTypeRequiredDescription
workflow_idstringWorkflow ID.
team_idstringTeam ID. Required if user belongs to multiple teams.
project_idstringProject ID to scope the operation to.
response_formatenum(json | markdown)jsonOutput format: 'json' for structured data, 'markdown' for human-readable text.