The playlist object controls an individual playlist for a channel. Playlists are a block of content that is scheduled to play at a specific time. It will continue to loop the playlist until a new playlist replaces it.
You can use this to set the time the playlist is scheduled for and other details.
Application Name
The application name must begin with "username-"
Sample value:username-chorigin
Stream Name
May only contain alpha numerical characters, dashes (-), and underscores (_)
Sample value:mystreamname
Date when this playlist was last changes
Sample value:2022-07-12 10:50:00
When the playlist was stopped due to an error
Sample value:2022-07-12 10:50:00
The error that caused the playlist to stop
Sample value:Hardloop detected, no sources are playing
Date when this playlist was last changes
Sample value:2022-07-12 10:50:00
When the playlist was stopped due to an error
Sample value:2022-07-12 10:50:00
The error that caused the playlist to stop
Sample value:Hardloop detected, no sources are playing
Playlist item for a channel
Get the Playlists object with id My Playlist Name.
https://api.scaleengine.net/v2/playlists/My Playlist Name
curl --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/playlists/My Playlist Name
None
{ "id": "N/A", "cdn_id": "8123", "name": "My Playlist Name", "app": "username-chorigin", "stream": "mystreamname", "repeat": "true", "metadata": "true", "scheduled": "2022-07-15 16:55:20", "last_modified": "2022-07-12 10:50:00", "active": "true", "closed_on": "2022-07-12 10:50:00", "reason": "Hardloop detected, no sources are playing" }
Create a new Playlists object.
https://api.scaleengine.net/v2/playlists
curl -X PUT --data-binary @/path/to/request/body --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/playlists
{ "name": "My Playlist Name", "app": "username-chorigin", "stream": "mystreamname", "repeat": "true", "metadata": "true", "scheduled": "2022-07-15 16:55:20", "active": "true" }
{ "id": "N/A", "cdn_id": "8123", "name": "My Playlist Name", "app": "username-chorigin", "stream": "mystreamname", "repeat": "true", "metadata": "true", "scheduled": "2022-07-15 16:55:20", "last_modified": "2022-07-12 10:50:00", "active": "true", "closed_on": "2022-07-12 10:50:00", "reason": "Hardloop detected, no sources are playing" }
Update the Playlists object with id My Playlist Name.
https://api.scaleengine.net/v2/playlists/My Playlist Name
curl -X POST --data-binary @/path/to/request/body --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/playlists/My Playlist Name
{ "name": "My Playlist Name", "app": "username-chorigin", "stream": "mystreamname", "repeat": "true", "metadata": "true", "scheduled": "2022-07-15 16:55:20", "active": "true" }
{ "id": "N/A", "cdn_id": "8123", "name": "My Playlist Name", "app": "username-chorigin", "stream": "mystreamname", "repeat": "true", "metadata": "true", "scheduled": "2022-07-15 16:55:20", "last_modified": "2022-07-12 10:50:00", "active": "true", "closed_on": "2022-07-12 10:50:00", "reason": "Hardloop detected, no sources are playing" }
Delete the Playlists object with id My Playlist Name.
https://api.scaleengine.net/v2/playlists/My Playlist Name
curl -X DELETE --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/playlists/My Playlist Name
None
You do not have access to modify this field
Missing one or more required fields
Data type does not conform to required field type
The value exceeded maximum length allowed
The application name must begin with "username-"
May only contain alpha numerical characters, dashes (-), and underscores (_)