Reorder Playlist Tracks
reorder_playlist_tracksMove a block of consecutive tracks to a new position in a Spotify playlist using zero-based indices.
Instructions
Move a contiguous block of tracks to a new position within a playlist.
Args:
playlist_id: Playlist ID
range_start: Zero-based position of the first track to move
insert_before: Zero-based position to insert the moved block before.
Pass the playlist's total track count to move the block to the end.
range_length: Number of consecutive tracks to move (default 1)
snapshot_id: Optional playlist snapshot ID to guard against concurrent edits
Returns:
ActionResult with the new snapshot_id
Note: Positions are zero-based. Example: move the first 3 tracks to just
before position 10 with range_start=0, range_length=3, insert_before=10.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playlist_id | Yes | ||
| range_start | Yes | ||
| insert_before | Yes | ||
| range_length | No | ||
| snapshot_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes | ||
| snapshot_id | No |