Skip to main content
PATCH
/
streaming
/
playlists
/
{playlist_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
playlist = client.streaming.playlists.update(
    playlist_id=0,
)
print(playlist.ad_id)
{
  "name": "Playlist: Webinar 'Onboarding for new employees on working with the corporate portal'",
  "active": true,
  "start_time": "2024-07-01T11:00:00Z",
  "loop": false,
  "video_ids": [
    17800,
    17801
  ],
  "client_user_id": 2876,
  "countdown": true,
  "playlist_type": "live"
}

Authorizations

Authorization
string
header
required

Path Parameters

playlist_id
integer
required

Body

application/json
name
string
client_id
integer
active
boolean
default:true
start_time
string
loop
boolean
default:false
video_ids
integer[]
client_user_id
integer
ad_id
integer
player_id
integer
countdown
boolean
playlist_type
enum<string>
Available options:
live,
vod
hls_url
string
hls_cmaf_url
string
iframe_url
string

Response

200 - application/json
name
string
client_id
integer
active
boolean
default:true
start_time
string
loop
boolean
default:false
video_ids
integer[]
client_user_id
integer
ad_id
integer
player_id
integer
countdown
boolean
playlist_type
enum<string>
Available options:
live,
vod
hls_url
string
hls_cmaf_url
string
iframe_url
string