Stream

Set instant playlist

POST
https://api.tunio.ai/v1/stream/{stream_id}/instant-playlist

Replaces the stream's whole music schedule with one playlist that plays around the clock. The previous music slots are removed. If the station is online, its queue is flushed so the playlist starts right away; an offline station plays it when it next starts.

Path parameters

NameTypeDescription
stream_idRequiredstringStream UUID

Request body

Set instant playlist request

NameTypeDescription
jingle_playlist_idstring
UUID of one of your jingle bundles (GET /v1/jingle-bundles) to play between tracks. Omit, null or empty for no jingles.
jingles_tracks_intervalinteger
Number of music tracks between jingles. Omitted, 0 or negative means the default of 2.
playlist_idRequiredstring
UUID of one of your playlists (GET /v1/playlists).
Request example
01{
02 "jingle_playlist_id": "string",
03 "jingles_tracks_interval": 3,
04 "playlist_id": "0b7c6a8e-2f5d-4c1e-9a3b-7d4e5f6a7b8c"
05}

Responses

NameTypeDescription
instant_playlist_idstring
UUID of the playlist now on air. For a playlist copied from the public catalog this is the original playlist's UUID (original_playlist_id), not the one sent.
successboolean
Always true.
NameTypeDescription
errorsobject
Failed validation rules keyed by JSON field name, for example "required field", "min=1" or "oneof=ai human mixed".
messagestring
Always "validation_error".
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.