Create a new playlist.

POST
https://demo.azuracast.com/api/station/{station_id}/playlists

Body

application/json
namestring
Example
Test Playlist
descriptionstring | null
Example
A playlist containing my favorite songs
typePlaylistTypesdefaultonce_per_x_songsonce_per_x_minutesonce_per_hourcustom
sourcePlaylistSourcessongsplaylistsremote_urlrequests
orderPlaylistOrdersrandomshufflesequential
remote_urlstring | null
Example
https://remote-url.example.com/stream.mp3
remote_typePlaylistRemoteTypes | null
Show child attributes
One of
PlaylistRemoteTypesstreamplaylistother
Example
stream
remote_bufferinteger

The total time (in seconds) that Liquidsoap should buffer remote URL streams.

Example
0
is_enabledboolean
Example
true
is_jingleboolean

If yes, do not send jingle metadata to AutoDJ or trigger web hooks.

Example
false
play_per_songsinteger
Example
5
play_per_minutesinteger
Example
120
play_per_hour_minuteinteger
Example
15
weightinteger

The relative weight of the playlist. Larger numbers play more often than playlists with lower number weights.

Example
3
include_in_requestsboolean
Example
true
include_in_on_demandboolean

Whether this playlist’s media is included in ‘on demand’ download/streaming if enabled.

Example
true
backend_optionsArray<string>
Example
interrupt,loop_once,single_track,merge
avoid_duplicatesboolean
Example
true
preserve_queue_on_restartboolean

Don’t reset this playlist’s queue when the station is restarted or its configuration is rewritten.

Example
false
schedule_itemsArray<any>
podcastsArray<any>
playlistsArray<any>

Parameters

station_idinteger | stringrequiredpath

Response

200OKHasAutoIncrementId & object & HasLinks & Api_StationPlaylistComputedFields

Success

Response fields application/json
idintegerrequiredread only
namestring
Example
Test Playlist
descriptionstring | null
Example
A playlist containing my favorite songs
typePlaylistTypesdefaultonce_per_x_songsonce_per_x_minutesonce_per_hourcustom
sourcePlaylistSourcessongsplaylistsremote_urlrequests
orderPlaylistOrdersrandomshufflesequential
remote_urlstring | null
Example
https://remote-url.example.com/stream.mp3
remote_typePlaylistRemoteTypes | null
Show child attributes
One of
PlaylistRemoteTypesstreamplaylistother
Example
stream
remote_bufferinteger

The total time (in seconds) that Liquidsoap should buffer remote URL streams.

Example
0
is_enabledboolean
Example
true
is_jingleboolean

If yes, do not send jingle metadata to AutoDJ or trigger web hooks.

Example
false
play_per_songsinteger
Example
5
play_per_minutesinteger
Example
120
play_per_hour_minuteinteger
Example
15
weightinteger

The relative weight of the playlist. Larger numbers play more often than playlists with lower number weights.

Example
3
include_in_requestsboolean
Example
true
include_in_on_demandboolean

Whether this playlist’s media is included in ‘on demand’ download/streaming if enabled.

Example
true
backend_optionsArray<string>
Example
interrupt,loop_once,single_track,merge
avoid_duplicatesboolean
Example
true
preserve_queue_on_restartboolean

Don’t reset this playlist’s queue when the station is restarted or its configuration is rewritten.

Example
false
schedule_itemsArray<any>
podcastsArray<any>
playlistsArray<any>
short_namestringread only

A URL-safe version of the playlist name.

num_songsinteger | nullread only

The number of songs in the playlist, if it is a song-based playlist.

Example
25
total_lengthnumber<float> | nullread only

The total length of the playlist in seconds, if it is a song-based playlist.

Example
3600

The parent groups that this playlist is a member of.

Show child attributes
idintegerrequired

The unique identifier of the parent group.

Example
1
namestringrequired

The name of the parent group.

Example
My Group
403ForbiddenApi_Error

Access denied.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
500Internal Server ErrorApi_Error

A generic exception has occurred.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false

Authorization

ApiKeyapiKey in header