v1
latestOpenAPI 3.0.32026-07-139687282.9 KBUpdate Playlist Items
Either reorder or replace items in a playlist depending on the request's parameters. To reorder items, include range_start, insert_before, range_length and snapshot_id in the request's body. To replace items, include uris as either a query parameter or in the request's body. Replacing items in a playlist will overwrite its existing items. This operation can be used for replacing or clearing items in a playlist. <br/> Note: Replace and reorder are mutually exclusive operations which share the same endpoint, but have different parameters. These operations can't be applied together in a single request.
Path parameters
The Spotify ID of the playlist.
Query parameters
A comma-separated list of Spotify URIs to set, can be track or episode URIs. For example: uris=spotify:track:4iV5W9uYEdYUVa79Axb7Rh,spotify:track:1301WleyT98MSxVHPZCA6M,spotify:episode:512ojhOuo1ktJprKbVcKyQ<br/>A maximum of 100 items can be set in one request.
Request body
Example request
{
"range_start": 1,
"insert_before": 3,
"range_length": 2
}Response
A snapshot ID for the playlist
Example response
{
"snapshot_id": "abc"
}