Templates
email_unpublish_template
Take a published template back out of service: clears its live version and returns it to draft, so every send refuses with template_not_published until it is published again.
write email_unpublish_template
Take a published template back out of service: clears its live version and returns it to draft, so every send refuses with template_not_published until it is published again. Use when a template went live before it was ready — this is NOT email_delete_template, nothing is archived and republishing restores it. Refused while an active automation sends this template; pause those first.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | |
projectId | string | No | Target company (project id) — required on company-scoped tools. Call email_list_projects to enumerate companies. |