Class UnfollowArtistsUsersRequest


  • public class UnfollowArtistsUsersRequest
    extends Object
    Unfollow Artists or Users request

    Required OAuth scopes

    user-follow-modify

    Response

    On success, the HTTP status code in the response header is 204 No Content and the response body is empty. On error, the header status code is an error code and the response body contains an error object.

    • Constructor Detail

      • UnfollowArtistsUsersRequest

        public UnfollowArtistsUsersRequest​(ApiClient apiClient,
                                           String type,
                                           List<String> ids)

        Unfollow Artists or Users request

        Parameters:
        apiClient -

        The API client

        type -

        The ID type: either artist or user.

        ids -

        A JSON array of the artist or user Spotify IDs. For example: {ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}. A maximum of 50 IDs can be sent in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored.

    • Method Detail

      • build

        public ApiCall<Void> build()
        Build the request into an executable call