Skip to content

UpdatePlaylistItems should include an override with PlaylistReplaceItemsRequest #1040

@chetta19

Description

@chetta19

UpdatePlaylistItems currently only support PlaylistReorderItemsRequest.
In order to also be able to replace items or empty a playlist it should also support PlaylistReplaceItemsRequest.
This is needed to replace what was previously done by ReplaceItems

We should be able to do the following
spotify.Playlists.UpdatePlaylistItems(playlist.Id!, new PlaylistReplaceItemsRequest(new List()));

In the past the call would have been
spotify.Playlists.ReplaceItems(playlist.Id, new PlaylistReplaceItemsRequest(new List { }));

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions