# Replaying from the UI

## Updating a Request by Replaying

1. Navigate to the requests list page at [http://localhost:4200/agent/requests](http://localhost:4201/agent/requests)
2. Click on the request that we want to update. In the screenshot, we see a request that returned a 200 status code and a healthy json body in the response. For our example, this is a HTTP request to an application running on `localhost` that then calls the Spotify's API to return details about a song.

<figure><img src="/files/BMWNQnAFlUKOX4Fg1uCX" alt=""><figcaption><p>Request details</p></figcaption></figure>

3. Now go to the Replay History by clicking on the following tab

<figure><img src="/files/7qcNQ9iddXIGm5R7Mljx" alt=""><figcaption><p>Replay History tab</p></figcaption></figure>

4. Pick one of the requests to overwrite the current HTTP response with and click on "Activate"

<figure><img src="/files/2g8i9uMpBKTf6BUbCflY" alt=""><figcaption><p>Activate button</p></figcaption></figure>

5. A prompt should pop up asking you to confirm. Click on "CONFIRM"

<figure><img src="/files/SXbt1t72FqGzufIcoDdw" alt=""><figcaption><p>Confirm</p></figcaption></figure>

6. The response for the request has now been updated successfully!

<figure><img src="/files/s9sR0IBP8sIRYTRXC886" alt=""><figcaption><p>Success!</p></figcaption></figure>

7. Finally, run the Agent in Mock mode and send a HTTP request to that endpoint. After sending a request, Stoobly will return the new response instead of the old one. Please note that you can change the response back to its original one or any of the re-recordings by using the [Replay History](/core-concepts/mock-api/requests/replay-history.md).


---

# Agent Instructions: 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:

```
GET https://docs.stoobly.com/guides/how-to-update-requests/updating-with-replay/replaying-from-the-ui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
