# Update your Misty

In cases where Misty is connected to the internet, she should normally update automatically after some period of time. Not all Mistys update at the same time, so you'd want to leave your Misty on for a few hours, and plugged in. If the battery is below 50%, or if internet connectivity is absent, the robot won't try to update.

Now it's necessary to get the robot information:&#x20;

* If you got your Misty's IP address from the app you can click on the middle bottom button (my misty) to get the information of your robot.
* If you got your Misty's IP address in another way you can still look for the information of your robot by writing in your search bar : `http://{ROBOT-IP-ADDRESS}/api/device`

If the robot version - in the software section- is less than 2.0, the robot won't be able to host the Misty studio and has to be updated.

If the robot meets these conditions, you can attempt to force an update by issuing two HTTP commands:

* `POST http://{ROBOT-IP-ADDRESS}/api/system/update/allow` \[this allows automatic updates if the user had suppressed them]
* `POST http://{ROBOT-IP-ADDRESS}/api/system/update` \[this triggers the update request, which still needs to download the update package]

To issue the POST commands you can use curl, Visual Studio code or postman if you feel more comfortable but in this case, we'll work with HTTPie.

#### Instructions

* Download [HTTPie](https://httpie.io/download)
* Install the program on your device and login (with a GitHub account, for example)
* Double-check to be on the same network as the robot and have it plugged in
* Sending the command:

  * In the top label select POST as the method
  * in the writing area next to it type:

  `http://{ROBOT-IP-ADDRESS}/api/system/update/allow`&#x20;

once the request has succeded (you can read "status" = success),&#x20;

* submit the second one : `http://{ROBOT-IP-ADDRESS}/api/system/update`

After executing the above, give the robot some time and see if updates begin. The update package is around 600MB, which must be downloaded before the robot will notify you that the update is beginning.

In this picture, you can see the result after submitting the second command (this Misty was already updated so the "result" is false, but "status" is Success).

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


---

# 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://lessons.mistyrobotics.com/misty-lessons/update-your-misty.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.
