> For the complete documentation index, see [llms.txt](https://docs.decisionrules.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decisionrules.io/doc/space/space-version-control/revision-tags.md). Agents can also search and read this documentation through its [MCP server](https://docs.decisionrules.io/doc/~gitbook/mcp).

# Revision Tags

Movable names for revisions that integrations call instead of revision IDs.

A revision tag is a movable name for a revision. Integrations call a tag — `?revisionIdentifier=production` — instead of a revision ID, so you can point them at a new revision by moving the tag, without changing a single URL.

### The Built-in Tag

Every versioned space has the tag **PUBLISHED**. It always names the revision that is currently published, moves with every publish and rollback, and cannot be edited or deleted. `?revisionIdentifier=PUBLISHED` is the same as sending no revision at all on the Solver API; on the Management API it is the way to read the live content. Like every tag name it is case-sensitive: write it in capitals, `published` is refused as an unknown revision.

### Managing Tags

Tags are managed on **Space → Settings**, tab **Revision Settings**. The tab is shown on every organization space and holds the Space Versioning switch; once the space is versioned, it also lists every tag with its description and the revision it currently points at, the built-in **PUBLISHED** tag first.

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2Fs2HJ6W4MRiE8leTPsF0y%2Fspace-versioning-tags.png?alt=media&amp;token=1c656b20-e625-4513-8567-04cea8b6a2e9" alt=""><figcaption></figcaption></figure>

* **Create Tag** opens a dialog with the tag **Name**, an optional **Description**, a **Color** and the **Current Revision** the tag points at. A revision in any state can be tagged. A name that is already taken is refused: *"A tag named … already exists. Edit that tag to move it to another revision."* (Through the API, `PUT /api/revision/tag/{name}` creates the tag or moves the existing one.)
* **Edit Tag** (in the row's tools menu) changes the name, description, colour or the revision.
* **Delete Tag** removes the tag. The revision is not affected. The confirmation warns that *"Integrations calling it by name will stop resolving and receive an error."*
* A tag can also be moved from the **Revisions** list: **Tools → Tag Revision** shows the space's own tags (never **PUBLISHED**; *No tags yet* when there is none) — pick one to move it to that revision. The **Move Tag** dialog shows the tag with its **Source Revision** and **Target Revision** and explains that *"Any integration calling the tag will now resolve to the new revision."*

Creating, editing, moving and deleting tags needs the **Manage Revisions** permission. Without it the tab is read-only: there is no **Create Tag** button or row menu, and **Tag Revision** is not offered in the Revisions list. Every change takes effect on the next API call.

Tag names follow these rules:

* 1 to 64 characters — letters, digits, dashes and underscores. Names are case-sensitive: `Prod` and `prod` are two different tags.
* Unique within the space.
* `PUBLISHED` is reserved in any letter case, so `published` or `Published` cannot be created either.
* A name must not have the shape of a revision ID, because `revisionIdentifier` is resolved as a tag first and as a revision ID second.

### How Tags Behave in the Lifecycle

* **Publishing** a revision does not move your tags. Move `production` to the new revision when you decide it is ready — that is the point of a tag.
* **Archiving** a revision keeps its tags; the tagged content is still served.
* A revision **cannot be deleted** while a tag points at it. Move or delete the tag first.
* **Disabling** Space Versioning deletes all tags. Integrations that keep sending `?revisionIdentifier=` afterwards are not refused: on a space without versioning the parameter is ignored.

### Using Tags

* **Solver API:** `POST https://api.decisionrules.io/rule/solve/{ruleId}?revisionIdentifier=production`
* **Management API:** every call names the revision it works with, for example `GET https://api.decisionrules.io/api/rule/{ruleId}?revisionIdentifier=production` reads the rule as it is in the revision the tag points at.
* **Jobs and test runs** started through the API accept the same parameter.

Typical patterns:

* **Staged rollout.** `staging` points at the revision under test, `production` at the one customers use. Publish, test `staging`, then move `production`.
* **Pinning a consumer.** Point `partner-x` at the revision a partner integrated against and move it only after they confirmed the new one.
* **Fast rollback for one consumer.** Move a tag back to the previous revision; no other consumer is affected. To roll back the space itself, use **Roll back to this version** in the [Revisions](https://docs.decisionrules.io/doc/space/space-version-control/revisions.md#rolling-back) list.

The **Tag Created**, **Tag Moved**, **Tag Updated** and **Tag Deleted** webhook events report every change — see [API and Integrations](https://docs.decisionrules.io/doc/space/space-version-control/api-and-integrations.md#webhooks-and-event-logs). A save that changes nothing sends no event; an edit that renames a tag and points it at another revision sends **Tag Updated** and then **Tag Moved**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decisionrules.io/doc/space/space-version-control/revision-tags.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
