> For the complete documentation index, see [llms.txt](https://docs.laws.africa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.laws.africa/how-tos/documents-and-document-settings/going-back-to-a-previous-version-of-a-document.md).

# Going back to a previous version of a document

Every now and then, a mistake is introduced into a document and we need to return to a previous version of it. This page describes how to do that.

{% hint style="info" %}
Pro tip:

If you're busy editing and something goes horribly wrong when you hit Update, just refresh the page to return to the last saved version of the document.&#x20;

Any other unsaved changes will also be lost — another reason to save often 😉
{% endhint %}

If you have already saved and want to return to a previously saved version of a document:

1. Open the 'Changes' panel.
2. Select the version you want to return to.&#x20;
   * Note: The changes shown for each version are the differences between the previous saved version and that one.
3. Click 'Restore this version' and confirm.

{% hint style="warning" %}
Any unsaved changes, as well as any changes saved after the version you are restoring to, will be discarded.
{% endhint %}

<figure><img src="/files/19GEItc5exsUizpyLvIC" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/g9ihABXP22TLMuvlceAy" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.laws.africa/how-tos/documents-and-document-settings/going-back-to-a-previous-version-of-a-document.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
