# Set embed chat configuration
`PUT https://octopus.livepush.io/streams/{stream_id}/embed/chat_config`
Configures the chat panel shown alongside the embedded player.

Requires a token with write access to the stream (`CanWriteStreams`).
- **Tag:** Stream Embed
- **Operation ID:** `putStreamEmbedChatConfig`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/stream-embed/set-embed-chat-configuration/

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `stream_id` | string | yes | Unique identifier of the stream. |


### Request body

`application/json` (required)

- `isEnabled` (boolean) — Whether chat is shown at all.
- `readonly` (boolean) — When true, viewers can read chat but not post.
- `adminLoginName` (string) — Moderator login name for the embedded chat.
- `adminLoginPassword` (string) — Moderator password. Write-only — never returned by the API.
- `greetingText` (string) — Message shown to viewers when they join the chat.
- `bannedWords` (string) — Comma-separated list of words filtered out of chat.


```json
{
  "isEnabled": true,
  "readonly": false,
  "adminLoginName": "string",
  "adminLoginPassword": "string",
  "greetingText": "Welcome! Keep it kind.",
  "bannedWords": "string"
}
```


### Example request

```bash
curl -X PUT 'https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/chat_config' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "isEnabled": true,
    "readonly": false,
    "adminLoginName": "string",
    "adminLoginPassword": "string",
    "greetingText": "Welcome! Keep it kind.",
    "bannedWords": "string"
  }'
```


### Responses


#### 200 — Setting applied.

- `success` (boolean)


```json
{
  "success": true
}
```


#### 400 — Response


#### 401 — Response

