Thomas Hartmann
Thomas Hartmann

Reputation: 59

spotify playlist items sorting mechanism in web api

It would be so great if the playlist items endpoint would have a sorting function, like sorting by date added (desc/asc) or other fields. sadly I do not find anything about sorting in the official docs.

https://developer.spotify.com/documentation/web-api/reference/#/operations/get-playlists-tracks

does anybody had the same issue as well and how do you solved it?

Upvotes: 4

Views: 761

Answers (1)

Eric Majerus
Eric Majerus

Reputation: 1228

You can reorder playlists using the Update Playlist Items endpoint.

It is a PUT on /playlists/{playlist_id}/tracks and has some body fields that are required.

https://developer.spotify.com/documentation/web-api/reference/reorder-or-replace-playlists-tracks

Upvotes: 0

Related Questions