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.

路径参数

名称类型说明
stream_idRequiredstringStream UUID

请求体

Set instant playlist request

名称类型说明
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).
请求示例
01{
02 "jingle_playlist_id": "string",
03 "jingles_tracks_interval": 3,
04 "playlist_id": "0b7c6a8e-2f5d-4c1e-9a3b-7d4e5f6a7b8c"
05}

响应

名称类型说明
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.
名称类型说明
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.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.