Skip to content
DocumentationAPI Reference

Change Playlist Details

playlists().update(PlaylistUpdateParamsparams = PlaylistUpdateParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
PUT/playlists/{playlist_id}

Change a playlist's name and public/private state. (The user must, of course, own the playlist.)

ParametersExpand Collapse
PlaylistUpdateParams params
Optional<String> playlistId

The Spotify ID of the playlist.

Optional<Boolean> collaborative

If true, the playlist will become collaborative and other users will be able to modify the playlist in their Spotify client.
Note: You can only set collaborative to true on non-public playlists.

Optional<String> description

Value for playlist description as displayed in Spotify Clients and in the Web API.

Optional<String> name

The new name for the playlist, for example "My New Playlist Title"

Optional<Boolean> published

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

Change Playlist Details

package dev.cjav.spotted.example;

import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.playlists.PlaylistUpdateParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        SpottedClient client = SpottedOkHttpClient.fromEnv();

        client.playlists().update("3cEYpjA9oz9GiPac4AsH4n");
    }
}
Returns Examples