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
Request
- Base URLhttps://email-template.sls.epilot.io
- URLhttps://email-template.sls.epilot.io/v1/email-template/templates/{id}:migrate-automations
- Auth
- HTTP bearer
- or AsOrganization (a scheme the document does not define)
- or API key in header x-epilot-org-id
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 operation across all 2 revisions of this API.