Playlists
Update playlist
PATCH
https://api.tunio.ai/ v1/ playlists/ {playlist_id}Changes a playlist of the account by UUID. Only the fields present in the body change: an omitted field keeps its value, an explicit null clears it. Sending every field replaces the whole playlist as before. music_type applies to dynamic playlists and is needed only when the playlist has none yet.
路径参数
| 名称 | 类型 | 说明 |
|---|---|---|
| playlist_idRequired | string | Playlist UUID |
请求体
Update playlist request
| 名称 | 类型 | 说明 |
|---|---|---|
| bpm_from | integer | Lower BPM bound; null clears it. Must not be greater than the resulting bpm_to. |
| bpm_to | integer | Upper BPM bound; null clears it. |
| collection_id | string | UUID of a music collection in your library to draw tracks from; null clears it. |
| genres | string | Genre filter as a comma-separated string of genre names from GET /v1/genres, for example "lounge,jazz"; null clears it. A JSON array is rejected. |
| intro_asset_id | string | UUID of an audio asset in your library to play as the intro; null clears it. |
| is_instrumental | boolean | true for instrumental tracks only, false for vocal tracks only; null clears it. |
| music_languages | string | Comma-separated language codes of the vocals to select, for example "en,es"; null clears it. |
| music_type | string | Music source of a dynamic playlist: "ai", "human" or "mixed"; any other value is stored as "ai". Needed only when the playlist has none yet; ignored for static playlists. |
| title | string | Playlist title. Must not be blank when present. |
请求示例
01{02 "bpm_from": 90,03 "bpm_to": 120,04 "collection_id": "string",05 "genres": "lounge,jazz",06 "intro_asset_id": "string",07 "is_instrumental": true,08 "music_languages": "en,es",09 "music_type": "ai",10 "title": "Evening lounge"11}
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| success | boolean | True when the request completed without errors. |
| 名称 | 类型 | 说明 |
|---|---|---|
| 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. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |