# Replace player configuration
`PUT https://octopus.livepush.io/players/{player_id}/config`
Sets the player's embed configuration — the player equivalent of the `/streams/{stream_id}/embed/*` endpoints, as a single call.

This **replaces** the entire `config` object rather than merging into it. Fields you omit are cleared, so always send the complete configuration. Unknown fields are stripped rather than rejected.

Not used by the dashboard.

Requires a token with `CanWritePlayers`.
- **Tag:** Players
- **Operation ID:** `putPlayerConfig`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/players/replace-player-configuration/

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `player_id` | string | yes | Unique identifier of the player. |


### Request body

`application/json` (required)

- `embedTitle` (string)
- `embedColor` (string)
- `embedAutoplay` (boolean)
- `embedAbr` (boolean) — Adaptive bitrate playback.
- `embedLiveRewind` (boolean)
- `embedPremier` (boolean)
- `embedPremierText` (string)
- `embedOfflineText` (string)
- `embedOfflineTextAlt` (string)
- `embedPassword` (string)
- `embedDomains` (string[]) — Allowed hosting domains. Empty allows every domain.
- `embedGEOList` (string[]) — Allowed country codes. Empty allows every country.
- `embedDisableViewersCount` (boolean)
- `embedDisablePauseControl` (boolean)
- `embedCoverId` (string)
- `embedCoverFileName` (string)
- `embedChannelIconURL` (string)
- `embedChannelIconSize` (string)
- `embedChannelIconPosition` (string)
- `embedChannelIconLayout` (string)
- `embedChannelIconAnchorURL` (string)
- `maxConcurrentViewers` (integer) — Hard cap on simultaneous viewers.


```json
{
  "embedTitle": "Lobby screen",
  "embedColor": "#66d72f",
  "embedAutoplay": true,
  "embedAbr": false,
  "embedLiveRewind": false,
  "embedPremier": false,
  "embedPremierText": "string",
  "embedOfflineText": "string",
  "embedOfflineTextAlt": "string",
  "embedPassword": "string",
  "embedDomains": [
    "string"
  ],
  "embedGEOList": [
    "string"
  ],
  "embedDisableViewersCount": false,
  "embedDisablePauseControl": false,
  "embedCoverId": "string",
  "embedCoverFileName": "string",
  "embedChannelIconURL": "string",
  "embedChannelIconSize": "string",
  "embedChannelIconPosition": "string",
  "embedChannelIconLayout": "string",
  "embedChannelIconAnchorURL": "string",
  "maxConcurrentViewers": 0
}
```


### Example request

```bash
curl -X PUT 'https://octopus.livepush.io/players/pl_xxxxxxxxxxxx/config' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "embedTitle": "Lobby screen",
    "embedColor": "#66d72f",
    "embedAutoplay": true,
    "embedAbr": false,
    "embedLiveRewind": false,
    "embedPremier": false,
    "embedPremierText": "string",
    "embedOfflineText": "string",
    "embedOfflineTextAlt": "string",
    "embedPassword": "string",
    "embedDomains": [
      "string"
    ],
    "embedGEOList": [
      "string"
    ],
    "embedDisableViewersCount": false,
    "embedDisablePauseControl": false,
    "embedCoverId": "string",
    "embedCoverFileName": "string",
    "embedChannelIconURL": "string",
    "embedChannelIconSize": "string",
    "embedChannelIconPosition": "string",
    "embedChannelIconLayout": "string",
    "embedChannelIconAnchorURL": "string",
    "maxConcurrentViewers": 0
  }'
```


### Responses


#### 200 — Setting applied.

- `success` (boolean)


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


#### 401 — Response


#### 404 — No such player for this account.

