Point a schedule at a newer commit
update_scheduleRepins an existing schedule to a different commit so unattended runs use updated workflow code, preserving its cron, jitter, run history and enabled state.
Instructions
A schedule runs the COMMIT it was created on, not the canvas — so after you change and commit the workflow, the schedule keeps running the old code. This repins it onto another commit (the latest one when versionId is omitted) without touching its cron, jitter, run history or whether it is enabled: no more delete-and-recreate. The auto-save cannot be pinned (commit first). Requires confirm=true: it changes which code runs unattended.
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": {
"triggerId": "<triggerId>"
},
"name": "update_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to repin. Omit/false returns a preview only. | |
| triggerId | Yes | ||
| versionId | No | The commit to run. Omit for the workspace's latest commit. |