Publish Workflow
publish_workflowPromotes a workflow draft to the live version after validation. Use to activate a workflow, with option to publish without activating.
Instructions
Publishes a workflow draft, promoting it to the live version.
Use this after create_workflow (and optionally update_workflow) to make the workflow active. Before publishing, the workflow is validated — if it has missing or misconfigured steps, publish will fail with a WORKFLOW_VALIDATION_FAILED error that includes structured issue details: which step failed, the issue type, and which inputs are missing. Use those details to guide the user on what to fix before retrying.
Parameters:
workflowObjectId and workflowDraftId: returned by create_workflow — they identify which draft to publish.
shouldActivate: whether to activate the workflow immediately after publish. Defaults to true — pass false to publish without activating.
Returns:
workflowObjectId: the workflow object ID (unchanged)
workflowLiveId: the new live version ID — this changes on every publish, so do not cache it
Note: if directing the user to the workflow in the UI, the correct URL path is custom_objects/, not workflows/ — e.g. {account}.monday.com/custom_objects/{workflowObjectId}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowObjectId | Yes | The workflow object ID returned by create_workflow. Identifies the workflow across all its drafts and live versions. | |
| workflowDraftId | Yes | The draft version ID returned by create_workflow. Both workflowObjectId and workflowDraftId are required — together they identify the exact draft to publish. | |
| shouldActivate | No | Whether to activate the workflow immediately after publishing so it starts running. Defaults to true — the workflow is activated immediately after publish. |