Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.Library.RemoveAlbums() always returns SpotifyAPI.Web.APIException: Bad request #828

Closed
benlane2003 opened this issue Nov 18, 2022 · 1 comment

Comments

@benlane2003
Copy link

benlane2003 commented Nov 18, 2022

The method to remove a user's albums from Library doesn't seem to work. I created an IList, added in an album's ID, created a LibraryRemoveAlbumsRequest with it and used it as a parameter for the call, but it always fails and returns a Bad request exception.
I tried using the same Album's ID in the Spotify console and this successfully removes the album from my account.
I am using SpotifyAPI Web 6.2.2 net standard 2.0

@JohnnyCrazy
Copy link
Owner

Seems like they ignore their own docs again 🤷🏼 It works if you send the IDs via query parameter, but the JSON body parameter does not...

https://developer.spotify.com/documentation/web-api/reference/#/operations/remove-albums-user

Will be fixed in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants