Replace player configuration
PUT
https://octopus.livepush.io/players/{player_id}/config
Base URL https://octopus.livepush.io — Core Streams & Media APIs
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.
Authorization
Send a valid access token in the Authorization header.
bearerAuth— Bearer token (JWT)
Authorization: Bearer YOUR_API_TOKEN
Try it
Loading the request builder…
PUT
https://octopus.livepush.io/players/{player_id}/config
— This call changes live data on your account.
Parameters
Path parameters
-
player_idstring requiredUnique identifier of the player.example: pl_xxxxxxxxxxxx
Request body
-
embedTitlestring -
embedColorstring -
embedAutoplayboolean -
embedAbrbooleanAdaptive bitrate playback. -
embedLiveRewindboolean -
embedPremierboolean -
embedPremierTextstring -
embedOfflineTextstring -
embedOfflineTextAltstring -
embedPasswordstringwrite-only -
embedDomainsstring[]Allowed hosting domains. Empty allows every domain. -
embedGEOListstring[]Allowed country codes. Empty allows every country. -
embedDisableViewersCountboolean -
embedDisablePauseControlboolean -
embedCoverIdstring -
embedCoverFileNamestring -
embedChannelIconURLstring -
embedChannelIconSizestring -
embedChannelIconPositionstring -
embedChannelIconLayoutstring -
embedChannelIconAnchorURLstring -
maxConcurrentViewersintegerHard cap on simultaneous viewers.
{
"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
}
Code samples
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
}'
const response = await fetch('https://octopus.livepush.io/players/pl_xxxxxxxxxxxx/config', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"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
}),
});
if (!response.ok) {
throw new Error(`Livepush API error ${response.status}`);
}
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
}
payload = {
"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
}
response = requests.put('https://octopus.livepush.io/players/pl_xxxxxxxxxxxx/config', headers=headers, json=payload, timeout=30)
response.raise_for_status()
data = response.json()
Responses
Setting applied.
-
successboolean
{
"success": true
}
No response body.
No such player for this account.