Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Change automation template

POST
/api/v3/automations/{automationUniqueId}/actions/change-template

Using the v3 API, which requires a key generated from the company-level, this endpoint allows you to change the active template of an automation.

automationUniqueId
required
string
object
items
nullable
message
string
total
number
Examples
Example Change automation template
{
"items": null,
"message": "Template {templateId} is not active.",
"total": 0
}

200 Success

Media type application/json
object
items
nullable
message
string
total
number
Examples
Example 200 Success
{
"items": null,
"message": "Automation template has been updated",
"total": 0
}

400 Template not found / 400 Template not active

Media type application/json
object
items
nullable
message
string
total
number
Examples
{
"items": null,
"message": "Template {templateId} is not active.",
"total": 0
}

404 Automation not found

Media type application/json
object
items
nullable
message
string
total
number
Examples
Example 404 Automation not found
{
"items": null,
"message": "RecordNotFoundException — \"Automation with unique ID {uniqueId} not found.\"",
"total": 0
}

422 Automation not in error state

Media type application/json
object
items
nullable
message
string
total
number
Examples
Example 422 Automation not in error state
{
"items": null,
"message": "Cannot change template for automation {uniqueId}: automation is not in error state.",
"total": 0
}

Still can’t find what you need? Contact support.