Email templates
migrateAutomationsForTemplate
Find all automation flows in the org that contain a send-email or reply-email action referencing old_template_id and rewrite those actions to point at the new template id ({id} path param). Intended to be called after a duplicated template has been refined, so automations follow over to the new template.
post/v1/email-template/templates/{id}:migrate-automations
Path parameters
idstring required
New template id (the duplicate that automations should be migrated onto)
Request body
Example request
{
"old_template_id": "511ceb90-f738-47aa-8b1e-915ace0ae13c"
}Response
Success
Example response
{
"migrated_flow_count": 3,
"migrated_workflow_count": 2,
"migrated_portal_count": 1
}Changes
No recorded changes to this endpoint across all 1 revision of this API.