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_idRequiredstringPlaylist UUID

请求体

Update playlist request

名称类型说明
bpm_frominteger
Lower BPM bound; null clears it. Must not be greater than the resulting bpm_to.
bpm_tointeger
Upper BPM bound; null clears it.
collection_idstring
UUID of a music collection in your library to draw tracks from; null clears it.
genresstring
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_idstring
UUID of an audio asset in your library to play as the intro; null clears it.
is_instrumentalboolean
true for instrumental tracks only, false for vocal tracks only; null clears it.
music_languagesstring
Comma-separated language codes of the vocals to select, for example "en,es"; null clears it.
music_typestring
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.
titlestring
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}

响应

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