Tasks
Update Template
Allows programmatically updating a Template
Basic usage
The below task adds a new action to the default
context of the draft
branch.
Parameters
required string
templateuuid UUID of the template to send the message to : ~~template.templateuuid
optional string
path The path inside template.branches
to apply the changes to.
Typically draft.contexts.default.parts.flow
or similar.
WARNING
If no path is provided, the changes will be applied to template.branches
, meaning it's possible to overwrite all existing branches.
optional string
operation The operation to perform on the data at path
.
merge
will merge thechanges
into the existing data atpath
set
will replace the existing data atpath
withchanges
Defaults to merge
.
required object
changes The changes to apply to the data at path
.
Result
Examples
Updating template.data
programmatically from a task