> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Set the outside bot in Support

PUT`/messenger/{messengerId}/outside-bot`

Any of `enabled`, `url` (https, a public host), `key` (sealed, never returned; null removes it), `keyHeader`, `persona` (`presale`, `support` or `onboarding`), `name`, `when` (`always` or `away`), `minConfidence` (0 to 1), `perMinute` and `burst`; fields left out stay. A new `url` needs `key` in the same call when a key is saved, so a saved key never goes to another address. It switches on only with an address and a key. Answers the whole state, so the same call twice changes nothing. Owners and admins only.

## Path Parameters

`messengerId`

numberrequired

## Response

200

**cURL**

```bash
curl --request PUT \
  --url 'https://api.workover.io/messenger/{messengerId}/outside-bot'
```

**JavaScript**

```javascript
const options = {
  method: 'PUT'
};

fetch('https://api.workover.io/messenger/{messengerId}/outside-bot', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/messenger/{messengerId}/outside-bot"

response = requests.put(url)

print(response.text)
```
