---
title: Restore a previous guardrail version
slug: agent-platform/docs/restore-a-previous-guardrail-version
docTags: 
createdAt: 2026-08-26T22:40:40.000Z
---

Every change to a guardrail creates a new immutable version in Agent Platform. Browse the version history to review previous versions and restore any of them. [Restore a version directly](docId\:Bn2f1jbR-4aajrNIQJIHZ) from the list, or [preview the version in read-only format](docId\:Bn2f1jbR-4aajrNIQJIHZ) first.

Restoring creates a new version that copies the selected version. The copy includes the rule text, block message, training data, and trained model. Restoring does not modify or delete the original version. When the restored version includes a trained model, the new version is available for activation without retraining.

## Open the version history

To view the version history of a guardrail, complete the following steps in Mark:

1. Go to **Agents > Input Guardrails**.

::Image[]{src="https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/dBFxUfdLBugy0Jl9Spix0_view-guardrail.png" size="100" isUploading="false" position="center" width="2254" height="718" darkWidth="2254" darkHeight="718" showCaption="false" indent="1"}

2. Click a guardrail.
3. Click **Version history**. The panel lists the current version and all previous versions, each with its status.

::Image[]{src="https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/oPLdb86pMLFKqi4u_9DsE_version-history.png" size="100" isUploading="false" position="center" width="1418" height="966" darkWidth="1418" darkHeight="966" showCaption="false" indent="1"}

## Restore a version directly

To restore a guardrail to a previous version without viewing it, complete the following steps:

1. Complete the steps in the [Open the version history](docId\:Bn2f1jbR-4aajrNIQJIHZ) section.
2. In the **Version history** panel, locate the previous version you want to restore.
3. Click **More options** for that version.
4. Click **Restore this version**.

::Image[]{src="https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/ZYMNsNaaIvE1NhyxOSpso_restore-directly.png" size="100" isUploading="false" position="center" width="2012" height="790" darkWidth="2012" darkHeight="790" showCaption="false" indent="1"}

## Preview a version before you restore it

To preview a previous version of the guardrail before restoring it, complete the following steps:

1. Complete the steps in the [Open the version history](docId\:Bn2f1jbR-4aajrNIQJIHZ) section.
2. In the **Version history** panel, locate the previous version you want to review.
3. Click **More options** for that version.
4. Click **View this version**. The guardrail opens in read-only preview mode.

::Image[]{src="https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/gfNPTez2NEXoGGh-DSMub_preview-version-first.png" size="100" isUploading="false" position="center" width="1448" height="1058" darkWidth="1448" darkHeight="1058" showCaption="false" indent="1"}

5. Do one of the following:
   - Click **Restore this version** to make the previewed version the current version.
   - Click **Exit preview** to return to the latest version without restoring.

:::hint{type="info"}
**Note**

If you use Opti ID, administrators can turn off generative AI in the Opti ID Admin Center. See [Turn generative AI off across Optimizely applications](docId\:X5U0kKD2azV5cIdNqwGNj).
:::
