> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish a template

> How to turn a draft into the version every send uses: requirements, change note and who can publish what.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/notification/catalog/{event}/channels/{channel}`, **Publish** button |
| Menu | Notifications › Catalog › **Event catalog** › an event › **Channels** tab › a channel |
| Role | Notification Admin (any template) and Notification Marketing (marketing ones only) |
| Permission | `notification-template:publish` or `notification-template:publish-marketing` |
| Feature flag | None |
| Last verified | 2026-11-20 against `develop` (`aed8bd19b`) |

## What it is for

Publishing turns the draft into the version every send uses from then on. The previous version is archived, in case
you need to go back to it.

## How to get there

* In the editor of a template with a draft, the **Publish** button is at the top right.

## What you see

![Publish version 4? dialog over the push template editor: text The draft becomes the version every send uses. The previous version is archived; empty Change note field with the hint Write at least 3 characters; Cancel and Publish buttons, the latter disabled.](https://mintcdn.com/bbrands/QwypFRCeLjQDiuVS/images/enterprise-notifications-screens/templates/publish.en.desktop.webp?fit=max\&auto=format\&n=QwypFRCeLjQDiuVS\&q=85\&s=7cc065cea27e3668296c0f41d5046bb7)

The publish dialog asks for a change note.

| # | Element | What it does |
| - | - | - |
| 1 | **Publish version N?** | The number of the draft that will become current |
| 2 | Description | "The draft becomes the version every send uses. The previous version is archived." |
| 3 | **Change note** | Required, at least 3 characters; it stays on the **Versions** tab |
| 4 | **Publish** | Confirms. It enables with a valid note |

## Step by step

### Publish a draft

**1. Review first**

Check the preview in every language you changed and send yourself a **Test send**.

**2. Press Publish**

The editor first checks there is a Spanish text and no unknown variables. If something is missing, it warns you
and does not open the dialog.

**3. Write the change note**

Explain what changed and why, for example "The customer's name is added to the greeting".

**4. Confirm**

Press **Publish**. Unsaved changes are saved first. You see **Version 4 published**: "New sends use it from now
on."

## Business rules

| ID | Rule |
| - | - |
| R-01 | Publishing needs a Spanish text, only known variables and every language passing the channel validation |
| R-02 | The server validates again with the longest sample data, so no text goes over the limit |
| R-03 | The previous version becomes **Archived**; it is never deleted |
| R-04 | Sends already queued or scheduled keep the version they were created with |
| R-05 | Notification Marketing only publishes templates of marketing-category events |
| R-06 | Notification Editor does not publish: they prepare the draft and tell whoever publishes |

## States and messages

| State | What you see | Why | What to do |
| - | - | - | - |
| Spanish missing | **Spanish text is required** | There is no ES text | Fill ES |
| Unknown variables | **Some variables are not declared by the event**, with the list per language | A variable does not exist | Fix it |
| Published | **Version N published**: "New sends use it from now on." | It was published | Nothing |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The version could not be published" and "Your role publishes and rolls back marketing templates only. Ask someone who can publish every template to do it." | You have Notification Marketing and the template is not marketing | 403 | Ask a Notification Admin to publish |
| "The version could not be published" | The server found a validation error or failed | 422 or 5xx | Check the marked fields and try again |

## Why it works this way

![Diagram: the published version vN is what sends use; Create draft copies it into a draft vN+1 that is saved, previewed and tested; Publish with a note makes it the published vN+1, used by new sends, and archives vN; rolling back from an archived version creates a new draft.](https://mintcdn.com/bbrands/_njGa-AUVffoWNDA/images/notification-user-manual/template-lifecycle.svg?fit=max\&auto=format\&n=_njGa-AUVffoWNDA\&q=85\&s=2bc0e09fa3823808c0081abf31aa45af)

A version goes from draft to published and, with the next publication, to archived.

A single published version at a time makes every customer get the same text, and the change note explains to whoever
comes later why it changed. Separating who edits from who publishes adds a review before the text reaches customers.

## Technical detail

| Aspect | Detail |
| - | - |
| Data | `POST /api/v3/notification/template/{id}/version/{n}/publish` with `changeNote` |
| Permission per category | `template-publish-authorization.ts`: `publish` for all, `publish-marketing` for marketing only |
| Texts | `modules.notification.editor` (`publishTitle`, `publishDescription`, `categoryNotAllowed`) |

## FAQ and support cases

> [accordion] I published and want to go back to the previous version
>
> Use **Roll back** on the **Versions** tab. See [Versions](https://docs.bbrands.io/enterprise/notifications/templates/versions.md).

> [accordion] I do not see the Publish button
>
> There is no draft (create one) or your role does not publish that template.

## Related and history

* [Versions](https://docs.bbrands.io/enterprise/notifications/templates/versions.md)
* [Roles and permissions](https://docs.bbrands.io/enterprise/notifications/getting-started/roles-and-permissions.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |
| 2026-11-20 | Editor route and menu under the event's channels (T-42) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.