> ## 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.

# Versions of a template

> How to see the version history of a template, compare two versions field by field and roll back to an earlier one.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/notification/catalog/{event}/channels/{channel}?tab=versions` |
| Menu | Notifications › Catalog › **Event catalog** › an event › **Channels** tab › a channel › **Versions** tab |
| Role | Everyone sees and compares; Notification Admin (any) and Marketing (marketing only) roll back |
| Permission | `notification-template:find-one` to see; `notification-template:publish` or `:publish-marketing` to roll back |
| Feature flag | None |
| Last verified | 2026-11-20 against `develop` (`aed8bd19b`) |

## What it is for

Each publication is kept as a version, with who published it, when and its change note. From here you see that
history, compare two versions to know what changed and go back to an earlier version if the new one had a problem.

## How to get there

* In the template editor (the event's **Channels** tab › the channel), **Versions** tab.

## What you see

![Versions tab: table with Version, Status, Published and Change note; v3 Published without Roll back, v2 and v1 Archived, each with the Roll back button; below, Compare versions with From v2 · Archived and To v3 · Published and a table Scope, Field, Before and After.](https://mintcdn.com/bbrands/QwypFRCeLjQDiuVS/images/enterprise-notifications-screens/templates/versions.en.desktop.webp?fit=max\&auto=format\&n=QwypFRCeLjQDiuVS\&q=85\&s=83cf4735b72261825b73a1fed343898f)

The versions of an email template and the comparison between v2 and v3.

| # | Element | What it does |
| - | - | - |
| 1 | **Version** and **Status** | Each version with its state: **Draft**, **Published** or **Archived** |
| 2 | **Published** | Publication date and who published |
| 3 | **Change note** | What the publisher wrote |
| 4 | **Roll back** | On an archived version: creates a draft with its content. The published version has none, since it is already the one in use |
| 5 | **Search by version, note or author** and sort | Filters the versions table and sorts it by **Newest first** (the default) or **Oldest first** |
| 6 | **Compare versions** | Pick **From** and **To** and see each field that changed: **Scope** (base or language), **Field**, **Before** and **After**. The table is filtered with **Search by scope or field** and sorted by **Scope and field** |

While they load, both tables keep their headers and show one skeleton per cell.

## Step by step

### Compare two versions

**1. Pick the versions**

In **Compare versions**, pick **From** (the older) and **To** (the newer).

**2. Read the differences**

Each row is a field that changed, in red the before and in green the after. **Scope** says whether a base field or
a language text changed.

### Roll back to an earlier version

**1. Press Roll back on the version**

**Roll back to version 2?** opens: "A draft is created with the content of v2. Sends keep using the published
version until you publish that draft."

![Roll back to version 2? dialog over the Versions tab, with the Cancel and Roll back buttons.](https://mintcdn.com/bbrands/QwypFRCeLjQDiuVS/images/enterprise-notifications-screens/templates/rollback.en.desktop.webp?fit=max\&auto=format\&n=QwypFRCeLjQDiuVS\&q=85\&s=70bfd8c800f9b14ad219024b62ca862a)

Rolling back creates a draft; it must be published to apply.

**2. Confirm**

Press **Roll back**. You see **Draft created from v2**: "Review it and publish it to roll back."

**3. Publish the draft**

Review the draft under **Editor** and [publish it](https://docs.bbrands.io/enterprise/notifications/templates/publish.md) with a note, for
example "Back to v2: the new text confused customers".

## Business rules

| ID | Rule |
| - | - |
| R-01 | Rolling back changes nothing at once: it creates a draft that must be published |
| R-02 | You cannot roll back while another draft exists: "Discard or publish the current draft to roll back." |
| R-03 | Rolling back needs publish permission; Notification Editor cannot roll back |
| R-04 | Versions are never deleted or edited |
| R-05 | Comparing needs at least two different versions |
| R-06 | Only archived versions can be rolled back to; the published version and the draft have no **Roll back** |

## States and messages

| State | What you see | Why | What to do |
| - | - | - | - |
| Draft open | "Discard or publish the current draft to roll back." | A draft already exists | Publish or discard it |
| Single version | "The diff needs at least two versions." | The template was never republished | Nothing |
| Same version | "Pick two different versions." | From and To are the same | Change one |
| No changes | **No differences.**: "Both versions have the same content." | The two versions are equal | Nothing |
| No versions | **No versions**: "This template has no versions yet." | The template has no versions | Nothing |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The rollback could not be started" | A draft exists, permission is missing or the server failed | 409, 403 or 5xx | Check the draft and the role |

## 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.

Rolling back creates a draft instead of publishing directly so you can review the old version before it goes out
again: it may have data that no longer exists or an outdated text.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `templates/editor/template-versions-tab.tsx` |
| Roll back | `POST /api/v3/notification/template/{id}/version` with `fromVersion` (needs publish permission) |
| Compare | `GET /api/v3/notification/template/{id}/version/{from}/diff/{to}` |

## FAQ and support cases

> [accordion] I rolled back but customers still get the new text
>
> Rolling back only creates the draft. It must be published.

> [accordion] Can I see who changed a template months ago?
>
> Yes: each version keeps who published it, when and its change note.

## Related and history

* [Publish](https://docs.bbrands.io/enterprise/notifications/templates/publish.md)
* [Template editor](https://docs.bbrands.io/enterprise/notifications/templates/editor.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |
| 2026-11-12 | **Roll back** only on archived versions (#2193) |
| 2026-11-20 | Versions and comparison in tables with search and sorting; route under the event's channels (T-42) |


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