Publish or unpublish a playbook
publish_workflowMark one of this account's workflows as finished (active), take it back to a draft, retire it (state='retired': kept, not deleted) or restore it. share_consent=true records only that the USER agreed a de-identified version may be proposed for the shared library; nothing is shared by this call.
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": "publish_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Instead of `published`: `retired` puts every version away (kept, not deleted; a shipped id it replaced is served again); `active` restores it; `draft` takes it back to a draft. | |
| published | No | True publishes it (the default), false returns it to a draft. A draft is readable but should not be followed as though finished. | |
| workflow_id | Yes | Which of your saved playbooks to publish or unpublish. | |
| share_consent | No | True only when the USER agreed that a de-identified version may be proposed for the shared library. Nothing is shared by this call: the studio reviews it first and never names the author. |