# Publishing, versions and republishing

Learn the difference between Save and Publish, what a published version freezes, and how to republish after a rule or team changes.

Source: https://support.rework.com/article/lead-publishing-and-versions

> **In plain words:** A router does nothing until you **publish** it. Publishing takes a **snapshot** (a frozen copy) of the router, called a **version**. Leads use the live version, so editing a rule or a team afterwards changes nothing until you publish again. This page explains Save and Publish, the version history, and every sign that tells you a router needs republishing. New to routers? Start with [Routing and distribution](https://support.rework.com/article/lead-routing-and-distribution).

**Where to find it:** In Lead, open your service in the left sidebar, click **SLA & Routing**, then **Routers**. Open a router. The tabs are **Flow Editor**, **Published versions** and **Process logs**. **Who can use it:** People who manage the service.

## Save versus Publish

| 
Button

 | 

What it does

 | 

Does it affect live leads?

 |
| --- | --- | --- |
| 

**Save**

 | 

Stores your edits as a **draft**. It is greyed out until you change something.

 | 

No

 |
| 

**Publish**

 | 

Saves any unsaved edits, then makes a new version live.

 | 

Yes, for new leads

 |

The badge next to the router name shows **Draft** or **Running**. **Running** means a published version is live. If you leave with unsaved edits, Lead asks **Leave flow without saving?**

When you publish:

- A new numbered version is created, for example **Version 3**.
  
- It becomes the **current** version. New leads follow it.
  
- Leads already travelling through the router keep the version they started on. So publishing never disturbs work in progress.
  

## What is frozen and what is live

At publish time Lead takes a snapshot of these things:

| 
Frozen in the version

 | 

Why it matters

 |
| --- | --- |
| 

The blocks and how they connect

 | 

Later edits to the draft do not change the live router.

 |
| 

Each rule's conditions

 | 

Editing a routing rule later does not change what the live router checks.

 |
| 

Each team's members, order, weights and method

 | 

Adding a member later does not change the live round-robin.

 |

Two things stay **live** and apply straight away, with no republish:

- **Pausing a team member.** A paused person is skipped on the next lead.
  
- **Assignment limits** (daily, weekly, monthly and concurrent). They are checked against live counts.
  

Broadcast settings (claim window, fallback, channels, message) are read when each new offer is made. An offer already out keeps the settings it started with. See [Lead pools: broadcast and claim](https://support.rework.com/article/lead-pools).

## Fix validation issues before you publish

If a block is incomplete, a badge appears in the top bar, for example **2 issues**. **Publish** stays greyed out until it is gone. Click the badge to open **Fix before publishing**. Each line names a block and the problem. Click a line to jump to that block.

Examples: **No rule selected**, **Rule was deleted**, **No wait duration**, **No team selected**, **No SLA duration**, **Selected metric is inactive or unavailable**, **Re-assign target not set**, **No campaign selected**, **No contact destination**. The full list is in [Router blocks reference](https://support.rework.com/article/lead-router-blocks).

![The router top bar showing the 2 issues badge](https://storage.googleapis.com/reworkv3-public/success/261015/C4aivuV77rx2MISJXsJPoaknA6rqzNhkd6dajkq6H6JOQ0EofHNC8srG8bBPA8G6/img.SnHGxzSbxFzRZAKjYx0YkNM6a3iciTz2S7JTQm854UGQX6JCHjgDi2xMcR1ndlsQ.png)

If you press **Publish** on an empty router, Lead says **Nothing to publish** and asks you to add a step first.

## The Published versions tab

Every publish is kept. To look at old ones, open the router's **Published versions** tab **(1)**. The version picker **(2)** shows each version with its date and who published it, and marks the live one **current**. With more than six versions, a search box appears.

Pick a version to see it on a read-only canvas. Click a block to see its settings as they were. For rules, the panel shows **Conditions as published**, which is exactly what the engine checks.

![Published versions tab of the Inbound lead routing router with the tab](https://storage.googleapis.com/reworkv3-public/success/261015/0QxItyb7jaNgFH4VSUwPL8xM4ONY7lwV5lIH0zKsPa6CiAtIIZTOFVAEqyD8hJ6F/img.SOqmZWwBUaaRb6Nl40N05NOJdPgE9XoaRoH5ei9o58AoBqpiw9YFQMykAjFc2gVv.png)

### View distribution order

On the current version, click a block that assigns to a team. A link named **View distribution order** opens the round-robin queue. Each person can carry a tag:

| 
Tag

 | 

Meaning

 |
| --- | --- |
| 

**Next assignee**

 | 

The next lead goes to this person.

 |
| 

**Pause assignment**

 | 

The person is paused and will be skipped.

 |
| 

**Inactive · skipped**

 | 

The account is inactive and will be skipped.

 |

### Restore to draft

**Restore to draft** copies the version you are viewing back into the editor. Lead asks **Restore version to draft?** first, because this replaces your current draft, and any unsaved edits are lost.

- The live router keeps running until you publish again.
  
- Review the draft, then press **Publish** to make it live.
  
- Restoring the **current** version is a safe way to throw away your edits and go back to what is live. Round-robin queues keep their place.
  
- Restoring an **older** version is a rollback. When you publish it, every team's round-robin queue starts again from the top. Lead warns you with "team queues will restart".
  

## Unpublish, duplicate, edit information and remove

On the **Routers** page, click the **⋯** menu on a router row:

| 
Action

 | 

What it does

 |
| --- | --- |
| 

**Edit information**

 | 

Change the name and description.

 |
| 

**Review & publish**

 | 

For a **Draft** router: opens the editor so you can check it and publish.

 |
| 

**Unpublish**

 | 

For a **Running** router: stops it starting for new leads. Leads already inside carry on with their version. The draft and version history are kept, so you can publish again later. You can also click **Unpublish** in the editor.

 |
| 

**Duplicate**

 | 

Copies the blocks and settings into a new **Draft** router in the same service.

 |
| 

**View process**

 | 

Opens the **Process logs** tab. See [SLA reports and tracing a lead's route](https://support.rework.com/article/lead-sla-reports).

 |
| 

**Setup builder**

 | 

Opens the editor on a running router.

 |
| 

**Remove**

 | 

Deletes the router after a confirmation. This cannot be undone.

 |

## When a router needs republishing

Because versions are frozen, Lead warns you whenever the live router is behind. You will see one of these.

| 
Where

 | 

What you see

 | 

What it means

 |
| --- | --- | --- |
| 

In the router editor

 | 

A banner: "N nodes changed since publish: the live version still routes on the old rules and teams" (a node is a block), with a **Republish** button

 | 

A rule or team used by this router changed after you published.

 |
| 

On a block

 | 

A small **Edited** tag

 | 

That block uses a rule or team that changed.

 |
| 

On the **Routing rules** page

 | 

A flag on the rule: **N flows to republish**

 | 

N running routers still use an old version of this rule.

 |
| 

In a rule's details, under **Used in**

 | 

A badge per router (see below) and a **Republish selected (N)** button

 | 

Same, with a one-click fix.

 |
| 

On the **Distribution teams** page

 | 

A flag on the team: **N routers to republish**

 | 

N running routers still use an old roster of this team.

 |
| 

In a team's **Routers** tab

 | 

The list **Routers using this team**, with a **Republish selected (N)** button

 | 

Same, with a one-click fix.

 |

The badges under **Used in** and on a team's **Routers** tab:

| 
Badge

 | 

Meaning

 |
| --- | --- |
| 

**Live · up to date**

 | 

The live router uses the current rule or team.

 |
| 

**Edited · not live**

 | 

You changed it. The live router still uses the old one.

 |
| 

**Will change on publish**

 | 

The draft uses it, but the live router still does not.

 |
| 

**Draft**

 | 

The router is not running.

 |

### Republish several routers at once

1. Open the rule's details (click the rule), or open the team and its **Routers** tab.
   
2. Under **Used in** (or **Routers using this team**), tick the routers to update. Routers that are behind are ticked for you.
   
3. Click **Republish selected (N)**, then confirm.
   
4. You should see "Republished N routers", and the badges turn to **Live · up to date**.
   

> **Important:** Bulk republish publishes the whole **saved draft** of each router, not only the change from that rule or team. Any other saved draft edits in those routers go live too. Unsaved edits in an open editor are not included.

![A routing rule's details panel with the Used in section](https://storage.googleapis.com/reworkv3-public/success/261015/HaXmF6K2PUmqUpvxC35wYQgWOZ6em5TrywjWKpPqUbgGvPtqRyNr4fn5pMUMvjGH/img.nhY7BlSAtxgw64JafUZ7hH1giGdXcesCqfQ3nMCc81BsYkGZqpFrBzypVyfbLWbJ.png)

## When the round-robin queue starts again

Round-robin remembers whose turn is next. That place is kept when you republish with the same team set-up. The queue starts again from the first member when:

- You change the order of members, add or remove members, or change the weights or method in a way that changes the rotation, and then republish.
  
- You go from set-up A to B and back to A. Returning does not bring the old place back.
  
- You publish a restored **older** version.
  

Pausing someone, or changing limits, never restarts the queue.

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

I edited a rule and nothing changed

 | 

The live router uses the version frozen at publish.

 | 

Republish the routers listed under **Used in**.

 |
| 

I added a member to a team and they get no leads

 | 

The roster is frozen in the published version.

 | 

Open the team's **Routers** tab and republish.

 |
| 

**Publish** is greyed out

 | 

The router has validation issues.

 | 

Click the **N issues** badge and fix each line.

 |
| 

A paused member still got a lead

 | 

The pause was ticked but not saved, or the lead was assigned before you saved.

 | 

On the **Members** tab, tick **Pause** and click **Save changes**. It applies from the next lead.

 |
| 

After a rollback everyone's queue restarted

 | 

Restoring an older version restarts queues by design.

 | 

Expect the first lead after publishing to go to the first member.

 |

More fixes: [Fix it by symptom](https://support.rework.com/article/lead-fix-by-symptom).
