diff --git a/lib/rspotify/user.rb b/lib/rspotify/user.rb index 48a8854b..2cdfedc2 100644 --- a/lib/rspotify/user.rb +++ b/lib/rspotify/user.rb @@ -394,8 +394,8 @@ def remove_albums!(albums) def save_albums!(albums) albums_ids = albums.map(&:id) url = "me/albums" - request_body = albums_ids.inspect - User.oauth_put(@id, url, request_body) + request_body = { ids: albums_ids } + User.oauth_put(@id, url, request_body.to_json) albums end