Playlist ManagementUpdate Playlist

Update Playlist

Update the playlist

curl -X POST "https://api.5centscdn.com/v2/streams/scheduledplaylist/1001/playlist/42" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "name": "default",
  "schedule": "instant",
  "scheduletime": "0",
  "loop": "1",
  "repeatfor": 0,
  "repeatintervaldays": 0,
  "autorestart": "0",
  "files": [
    "/2.mp4"
  ]
}'
{
  "result": "success",
  "message": "Playlist Updated"
}
POST
/streams/scheduledplaylist/{streamid}/playlist/{playlistid}
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

Friendly name for this resource.

schedulestring

Schedule type. Values: instant, scheduleontime, scheduleondatetime.

scheduletimestring

Time or datetime for scheduling. Use HH:MM for time, YYYY-MM-DD HH:MM:SS for datetime.

loopstring

Loop playback. Y means loop continuously, N means play once.

repeatforinteger

Number of times to repeat. 0 means no repeat.

repeatintervaldaysinteger

Interval in days between repeats.

autorestartstring

Automatically restart the stream if it stops. 1 means enabled, 0 means disabled.

filesarray

List of file paths for the playlist.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

streamidstring
Required

Stream ID

Example:
1001
playlistidstring
Required

Playlist ID

Example:
42

Body

application/json
namestring

Friendly name for this resource.

Example:
default
schedulestring

Schedule type. Values: instant, scheduleontime, scheduleondatetime.

Example:
instant
scheduletimestring

Time or datetime for scheduling. Use HH:MM for time, YYYY-MM-DD HH:MM:SS for datetime.

Example:
0
loopstring

Loop playback. Y means loop continuously, N means play once.

Example:
1
repeatforinteger

Number of times to repeat. 0 means no repeat.

Example:
0
repeatintervaldaysinteger

Interval in days between repeats.

Example:
0
autorestartstring

Automatically restart the stream if it stops. 1 means enabled, 0 means disabled.

Example:
0
filesarray

List of file paths for the playlist.

Example:
["/2.mp4"]

Responses

resultstring

Status of the API response.

messagestring

Human-readable message describing the result.