Stream
Set instant playlist
POST
https://api.tunio.ai/ v1/ stream/ {stream_id}/ instant-playlistReplaces 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_idRequired | string | Stream UUID |
请求体
Set instant playlist request
| 名称 | 类型 | 说明 |
|---|---|---|
| jingle_playlist_id | string | UUID of one of your jingle bundles (GET /v1/jingle-bundles) to play between tracks. Omit, null or empty for no jingles. |
| jingles_tracks_interval | integer | Number of music tracks between jingles. Omitted, 0 or negative means the default of 2. |
| playlist_idRequired | string | 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_id | string | 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. |
| success | boolean | Always true. |
| 名称 | 类型 | 说明 |
|---|---|---|
| errors | object | Failed validation rules keyed by JSON field name, for example "required field", "min=1" or "oneof=ai human mixed". |
| message | string | Always "validation_error". |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |