Set event videos
PUT
https://octopus.livepush.io/streams/{stream_id}/config/scheduler/{event_id}/playlist
Base URL https://octopus.livepush.io — Core Streams & Media APIs
Replaces the videos one event plays. Note the path has no /events/
segment.
This also sets the stream's default playlist to the same list. Fails
with max_runtime_per_event_reached when the videos are longer than
the plan's per-event runtime.
Requires a token with the streams.write scope.
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}/config/scheduler/{event_id}/playlist
— This call changes live data on your account.
Parameters
Path parameters
-
stream_idstring requiredUnique identifier of the pre-recorded live stream -
event_idstring requiredUnique identifier of the scheduled event
Request body
-
videosstring[] requiredVideo ids, in playback order
{
"videos": [
"Xk2fP9qLm"
]
}
Code samples
curl -X PUT 'https://octopus.livepush.io/streams/<stream_id>/config/scheduler/<event_id>/playlist' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"videos": [
"Xk2fP9qLm"
]
}'
const response = await fetch('https://octopus.livepush.io/streams/<stream_id>/config/scheduler/<event_id>/playlist', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"videos": [
"Xk2fP9qLm"
]
}),
});
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 = {
"videos": [
"Xk2fP9qLm"
]
}
response = requests.put('https://octopus.livepush.io/streams/<stream_id>/config/scheduler/<event_id>/playlist', headers=headers, json=payload, timeout=30)
response.raise_for_status()
data = response.json()
Responses
Event videos updated
-
successboolean
{
"success": true
}
Unknown stream or event
Unauthorized