# Live Version

> A published version of a knowledge base, opened from History on the Knowledge tab: the sources it holds, when it was published, and Unpublish, Roll Back or Publish Again.

Source: https://air.build/docs/screens/knowledge/knowledge-version/

This page shows one published version of a knowledge base: the sources your app answers from (or answered from), when it was published, and the one thing you can do to it. It's called **Live Version** for the version your app answers from now, and **Previous Version** for the one before it, which is kept so you can put it back.

## Open it

On the [Knowledge](https://air.build/docs/screens/knowledge/knowledge/) tab, tap a row under **History** (the row marked **Live** or **Previous**).

**iPhone**

On iPhone it opens as the next page in the inspector; go back with the back button. On iPad it opens as a sheet; close it with **Done**.

**Mac**

It opens as a sheet over the window. Close it with **Done**, or press Return.

## What's on it

| Item | What it shows or does | When it shows |
| --- | --- | --- |
| Title | **Live Version** or **Previous Version**. If the version's place changes while it's open (for example you unpublish it), the title follows. | Always |
| **Sources** | One row a source: its name, then its kind, size and language side by side (for example "PDF", "14 pages" and "English"), then its section headings or a table's column names. | When the version could be read |
| "Published _date_" | When the version was published, under the sources. | When the version could be read |
| **Unpublish…** | Stops your app answering from this version. | On the live version |
| **Roll Back…** | Makes this version live again; the live one becomes the previous one. | On the previous version while another is live |
| **Publish Again…** | Makes this version live again. | On the previous version when nothing is live |
| **Done** | Closes the sheet (Mac and iPad). | Always |

While the sources are read, placeholder rows stand in for them, one per source and at most three. A version read once opens straight away the next time, since a version never changes.

## Unpublish, roll back or publish again

1. Tap **Unpublish…**, **Roll Back…** or **Publish Again…** under the sources.
2. Confirm:
   - **Unpublish?** "Your app stops answering from these files until you publish again or roll back." Tap **Unpublish**.
   - **Roll Back to This Version?** "Your app answers from this version again. The live version is kept as the previous one, so you can switch back." Tap **Roll Back**.
   - **Publish This Version Again?** "Your app answers from this version again." Tap **Publish**.
3. The change takes effect at once. The page stays open and follows the version: a live version you unpublish becomes **Previous Version** and offers **Publish Again…**.

The button is dimmed while a change is on its way. A version that is neither live nor previous any more (for example after a roll back moved it out) shows no button. The same actions are in **History**'s row menu on the [Knowledge](https://air.build/docs/screens/knowledge/knowledge/#history) tab.

## Messages

| Message | What it means | What to do |
| --- | --- | --- |
| "This version is no longer kept." | AirBuild no longer has this version's files, so they can't be shown. | Nothing; close the page. |
| "Couldn’t read this version’s sources. Try again in a moment." | The sources couldn't be read. | Tap **Try Again**. |
| "Unable to finish. Check your connection and try again." | The connection dropped while reading. | Check your connection, then tap **Try Again**. |
| "You do not have access to this knowledge." | Your account can't open this knowledge base. | Check that you're in the right Team. |
| A reason at the bottom | An unpublish, roll back or publish again was refused; the versions are back as they were. | Try again, or check **History** on the tab. |
| No message | The versions were changed somewhere else at the same moment: the change isn't made, and the versions are read again and shown as they are now. | Check the versions, then try again if you still want the change. |
