Workflows: publish
workflows_publishPublishes a neonloops workflow so it runs on its own (schedule, webhook or app event). Pick with action:
publish (the default): the current draft becomes a new live version;
rollback: an earlier version (version_id) goes live again;
unpublish: it goes off live; versions and draft stay. Each takes two calls: the first changes nothing and returns what would happen with a confirmation_token (with the view permission a publish shows its checks and a refused draft gets no token; without it the token comes unchecked); the second, with the same arguments plus that token within 5 minutes, does it and runs the checks, so it can still be refused. Try a draft with runs_test_draft first. Deleting a workflow cannot be undone, so it is deliberately left to a person, in the app or on the full connection (/api/mcp/full).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workflow_id": "<workflow_id>"
},
"name": "workflows_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Defaults to publish, which makes the current draft live as a new version. With rollback, an earlier version goes live again (needs version_id). With unpublish, the workflow goes off live and its schedule and app-event subscriptions stop. | publish |
| version_id | No | For rollback only: the version to make live. Versions and their ids are in workflows_get. | |
| workflow_id | Yes | The workflow; workflows_list gives the ids. | |
| confirmation_token | No | Omit to PREVIEW: nothing is changed and a confirmation token is returned. Call again with that token, and the identical arguments, to perform the action. |