replace_playlist_tracks
Replace all tracks in a playlist with a specified list of track IDs or URIs, useful for reordering a playlist.
Instructions
Replace all tracks in a playlist with the given list, in order.
This is useful for reordering a playlist. First get the current tracks with get_playlist_tracks, reorder the IDs as desired, then pass the full ordered list here. The playlist will contain exactly these tracks in exactly this order.
Accepts track IDs or URIs. No limit on total tracks (batched internally).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_ids | Yes | ||
| playlist_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |