From 9b8effe2709717628ebeed42644a38ce24eea016 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Fri, 18 Nov 2022 12:58:35 +0100 Subject: [PATCH] RemoveAlbums - send ids via query parameter, fixes #828 --- SpotifyAPI.Web/Clients/LibraryClient.cs | 2 +- SpotifyAPI.Web/Models/Request/LibraryRemoveAlbumsRequest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SpotifyAPI.Web/Clients/LibraryClient.cs b/SpotifyAPI.Web/Clients/LibraryClient.cs index ed65beec..8a6f71ca 100644 --- a/SpotifyAPI.Web/Clients/LibraryClient.cs +++ b/SpotifyAPI.Web/Clients/LibraryClient.cs @@ -90,7 +90,7 @@ namespace SpotifyAPI.Web { Ensure.ArgumentNotNull(request, nameof(request)); - var statusCode = await API.Delete(SpotifyUrls.LibraryAlbums(), null, request.BuildBodyParams(), cancel).ConfigureAwait(false); + var statusCode = await API.Delete(SpotifyUrls.LibraryAlbums(), request.BuildQueryParams(), null, cancel).ConfigureAwait(false); return statusCode == HttpStatusCode.OK; } diff --git a/SpotifyAPI.Web/Models/Request/LibraryRemoveAlbumsRequest.cs b/SpotifyAPI.Web/Models/Request/LibraryRemoveAlbumsRequest.cs index 4221cdd1..e6620a14 100644 --- a/SpotifyAPI.Web/Models/Request/LibraryRemoveAlbumsRequest.cs +++ b/SpotifyAPI.Web/Models/Request/LibraryRemoveAlbumsRequest.cs @@ -22,7 +22,7 @@ namespace SpotifyAPI.Web /// For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M. Maximum: 50 IDs. /// /// - [BodyParam("ids")] + [QueryParam("ids")] public IList Ids { get; } } }