Create a snapshot before an update
When creating or overwriting a Task withPOST /api/tasks, add version=true to the query string:
Apply a partial update
UsePATCH /api/tasks/:id when you only need to change selected top-level fields. This endpoint snapshots the current Task before applying the update.
id and versions fields are ignored if included in a patch body.
List and inspect saved versions
Roll back a Task
Restore a previous snapshot withPOST /api/tasks/:id/rollback:
Clear version history
When old snapshots are no longer needed, clear a Task’s version history with:Recommended deployment pattern
- Create a dedicated API key for the deployment tool.
- Grant
tasks:manageand restrict the key to the Tasks it deploys. - Snapshot before an overwrite or use
PATCHfor smaller changes. - Run or inspect the updated Task before promoting it.
- Roll back by version ID if the new behavior is not correct.