Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

DELETE Method - Remove Playlist Items Broken

Solved!

DELETE Method - Remove Playlist Items Broken

API cal to remove items from playlist no longer works. A 200 status code and snapsho_id is returned, but no item has been removed.

Reply

Accepted Solutions
Marked as solution

EDIT:  My app was fetching the playlist contents twice which led to the behavior.

View solution in original post

6 Replies

Hey @kingdavid108, welcome to the community. Are you still having trouble with this endpoint? If so, it would be great if you could share a snippet of your code here and we can try to help that way.

The endpoint: https://api.spotify.com/v1/playlists/the_playlist_id/tracks

Body of my request: {"tracks":[{"uri":"spotify:track:the_track_uri_here"}]}

FYI, i even tried using the web console provided by Spotify and that still didn't work.

Everything used to work before.

Any update on this? The API is still broken

I just tried this myself and it appears to work fine.  However I also noticed if you attempt to DELETE a track that is not in the playlist you get the same result as if it was in the playlist.  I would suggest that you double check that you have the correct URI and that the URI corresponds to the track you're expecting to delete.  Can you share the full request body?

https://api.spotify.com/v1/playlists/0V9HTfbR8JjAZr6wH4JpPQ/tracks

this is the payload, {tracks: [{uri: "spotify:track:2vXgyN14LX2zl7JEASw242"}]}

It is my understanding that a track may have a different URI based on the market, maybe that has something to do with my issue? When i share the song from the playlist, the URI is different from the one provided to my application.
Marked as solution

EDIT:  My app was fetching the playlist contents twice which led to the behavior.

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random