Tasks
Save Template Version
Saves a new version of a template at a point in time, useful for tracking changes and reverting to previous versions.
Basic usage
The below task saves a snapshot
version of the current template.
Parameters
required string
templateuuid UUID of the template to save a version for.
required string
branch The branch from which to save the version.
required string
context The template context to save.
required string
note A descriptive note about the changes in this version.
required string
type The type of version to save:
snapshot
- A snapshot of the template at a point in time. If no changes are detected since the last snapshot, a new version will not be created.
Result
The result contains the details of the version that was just saved.
If type
is snapshot
and no changes have been made since the last snapshot, the task will return the latest existing snapshot.