> For the complete documentation index, see [llms.txt](https://poe-developers.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://poe-developers.gitbook.io/documentation/server-bots/updating-bot-settings.md).

# Updating bot settings

The settings endpoint provides a way for you to opt in/out of Poe's features enabling you to customize the behavior of the bot. This article will describe how you can get Poe to fetch the latest settings from your bot.

#### 1. Set up your endpoint as described by the specs

If you are using the `fastapi_poe` library, then you just need to implement the `get_settings` method in the `PoeBot` class. The following is an example:

```python
async def get_settings(self, setting: fp.SettingsRequest) -> fp.SettingsResponse:
    return fp.SettingsResponse(allow_attachments=True)
```

#### 2. Get your access key

You can find this key by going to the bot page and clicking the gear icon.

<figure><img src="https://435547813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcfB81SirqQZbLYjoxuW%2Fuploads%2Fgit-blob-de424728873be8cc0b69ea916775b6aabc7c88e4%2Fimage%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

#### 3. Make a post request to Poe's refetch settings endpoint with your bot name and access key.

On Windows, you can use the `Invoke-RestMethod` command. On a Macbook or Linux machine, you can use the curl command as follows:

`curl -X POST https://api.poe.com/bot/fetch_settings/<botname>/<access_key>`

That's it. The response to the above request will inform you whether the updated successfully.
