Class SaveAlbumsUserRequest


  • public class SaveAlbumsUserRequest
    extends Object
    Save Albums for Current User request

    Required OAuth scopes

    user-library-modify

    Response

    On success, the HTTP status code in the response header is 201 Created. On error, the header status code is an error code and the response body contains an error object. Trying to add an album when you do not have the user's authorization returns error 403 Forbidden.

    • Constructor Detail

      • SaveAlbumsUserRequest

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

        Save Albums for Current User request

        Parameters:
        apiClient -

        The API client

        ids -

        A JSON array of the Spotify IDs. For example: ["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]
        A maximum of 50 items can be specified 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