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
templateuuid required string
UUID of the template to send the message to : ~~template.templateuuid
path optional string
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.
operation optional string
The operation to perform on the data at path.
mergewill merge thechangesinto the existing data atpathsetwill replace the existing data atpathwithchanges
Defaults to merge.
changes required object
The changes to apply to the data at path.
Result
Examples
Updating template.data programmatically from a task