Save embed channel logo settings
PUT
https://octopus.livepush.io/streams/{stream_id}/embed/channel_logo
Base URL https://octopus.livepush.io — Core Streams & Media APIs
Configures the channel logo overlay: image, size, position, layout and click-through URL.
Requires a token with write access to the stream (CanWriteStreams).
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/streams/{stream_id}/embed/channel_logo
— This call changes live data on your account.
Parameters
Path parameters
-
stream_idstring requiredUnique identifier of the stream.example: st_xxxxxxxxxxxxx
Request body
-
embedChannelIconURLstringPublic URL of the logo image. -
embedChannelIconSizestringRendered size of the overlay. -
embedChannelIconPositionstringCorner the logo is anchored to. -
embedChannelIconLayoutstringLayout variant for the overlay. -
embedChannelIconAnchorURLstringURL opened when a viewer clicks the logo.
{
"embedChannelIconURL": "https://cdn.example.com/logo.png",
"embedChannelIconSize": "medium",
"embedChannelIconPosition": "top-right",
"embedChannelIconLayout": "compact",
"embedChannelIconAnchorURL": "https://example.com"
}
Code samples
curl -X PUT 'https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/channel_logo' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"embedChannelIconURL": "https://cdn.example.com/logo.png",
"embedChannelIconSize": "medium",
"embedChannelIconPosition": "top-right",
"embedChannelIconLayout": "compact",
"embedChannelIconAnchorURL": "https://example.com"
}'
const response = await fetch('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/channel_logo', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"embedChannelIconURL": "https://cdn.example.com/logo.png",
"embedChannelIconSize": "medium",
"embedChannelIconPosition": "top-right",
"embedChannelIconLayout": "compact",
"embedChannelIconAnchorURL": "https://example.com"
}),
});
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 = {
"embedChannelIconURL": "https://cdn.example.com/logo.png",
"embedChannelIconSize": "medium",
"embedChannelIconPosition": "top-right",
"embedChannelIconLayout": "compact",
"embedChannelIconAnchorURL": "https://example.com"
}
response = requests.put('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/channel_logo', headers=headers, json=payload, timeout=30)
response.raise_for_status()
data = response.json()
Responses
Setting applied.
-
successboolean
{
"success": true
}
No response body.
No response body.