# Change the messenger event settings

```http
PATCH https://trydimmi.com/api/v1/event-settings
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `attributes:write`.

## Body

- `messenger_new_events` (boolean, required): Whether the messenger may send any event name, defining the ones the workspace has not seen before. A plain boolean; leaving it out counts as false. Example: true.

## Response 200 (OK)

- `data` (object, required)
  - `messenger_new_events` (boolean, required): True when the messenger may send any event name from the browser, new names included; false when it may send only names the team opened to it.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/event-settings' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messenger_new_events": true
}'
```

## Example response

```json
{
  "data": {
    "messenger_new_events": true,
    "object": "<string>"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
