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

# Compare two versions

> Compare two versions of a rule to see what changed.

You compare two versions of a rule to see what changed between them. The comparison lists each
difference in the rule's logic. Approvers use a comparison to review a version before approving it.

## Prerequisites

Before starting this task, ensure you have the following:

* Required role: [Any workspace role](https://docs.nx1cloud.com/documentation/data/overview/business-rules.md#roles-and-permissions), such as `Viewer`
* A [rule with at least two versions](https://docs.nx1cloud.com/documentation/data/tasks/business-rules/versions/create-or-edit-a-draft-version.md)

## Steps

> [tab] Web portal
>
> Perform these steps to compare two versions:
>
> 1. Log in to NexusOne.
> 2. On the top navigation bar, hover your mouse over **Data** and then select **Business Rules**.
> 3. Select a workspace.
> 4. Select a rule.
> 5. In the **Versions** tab, find the newer of the two versions.
> 6. In the **Actions** column at the right end of the row, click **Compare**.
>    A dialog shows what changed since the previous version.

> [tab] REST API
>
> Use the following API endpoints to compare two versions:
>
> 1. [List versions of a decision](https://docs.nx1cloud.com/api-reference/endpoints/decisions/list-versions-of-a-decision.md)
> 2. [Diff two versions structurally](https://docs.nx1cloud.com/api-reference/endpoints/decisions/diff-two-versions-structurally.md)


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