EVOLUTION-MANAGER
Edit File: change_playlist_details.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Change a playlist’s name and public/private state. (The user...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for change_playlist_details {spotifyr}"><tr><td>change_playlist_details {spotifyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Change a playlist’s name and public/private state. (The user must, of course, own the playlist.)</h2> <h3>Description</h3> <p>Change a playlist’s name and public/private state. (The user must, of course, own the playlist.) </p> <h3>Usage</h3> <pre> change_playlist_details( playlist_id, name = NULL, public = NULL, collaborative = NULL, description = NULL, authorization = get_spotify_authorization_code() ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>playlist_id</code></td> <td> <p>Required. The <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify ID</a> for the playlist.</p> </td></tr> <tr valign="top"><td><code>name</code></td> <td> <p>Optional String containing the name for the new playlist, for example <code>"Your Coolest Playlist"</code>. This name does not need to be unique; a user may have several playlists with the same name.</p> </td></tr> <tr valign="top"><td><code>public</code></td> <td> <p>Optional. Boolean. If <code>TRUE</code> the playlist will be public. If <code>FALSE</code> it will be private.</p> </td></tr> <tr valign="top"><td><code>collaborative</code></td> <td> <p>Optional. Boolean. If <code>TRUE</code> the playlist will become collaborative and other users will be able to modify the playlist in their Spotify client.Note: you can only set <code>collaborative</code> to <code>TRUE</code> on non-public playlists.</p> </td></tr> <tr valign="top"><td><code>description</code></td> <td> <p>Optional. String containing the playlist description as displayed in Spotify Clients and in the Web API.</p> </td></tr> <tr valign="top"><td><code>authorization</code></td> <td> <p>Required. A valid access token from the Spotify Accounts service. See the <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/">Web API authorization Guide</a> for more details. Defaults to <code>spotifyr::get_spotify_authorization_code()</code>. The access token must have been issued on behalf of the current user. <br /> Changing a public playlist for a user requires authorization of the <code>playlist-modify-public</code> scope; changing a private playlist requires the <code>playlist-modify-private</code> scope. See <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#list-of-scopes">Using Scopes</a>.</p> </td></tr> </table> <h3>Value</h3> <p>The response from the Spotify Web API on the <code>PUT</code> request, with a meaningful error message if the operation was not successful. </p> <h3>See Also</h3> <p>Other playlist functions: <code><a href="add_tracks_to_playlist.html">add_tracks_to_playlist</a>()</code>, <code><a href="check_users_following.html">check_users_following</a>()</code>, <code><a href="create_playlist.html">create_playlist</a>()</code>, <code><a href="get_my_playlists.html">get_my_playlists</a>()</code>, <code><a href="get_playlist.html">get_playlist</a>()</code>, <code><a href="get_user_playlists.html">get_user_playlists</a>()</code>, <code><a href="remove_tracks_from_playlist.html">remove_tracks_from_playlist</a>()</code>, <code><a href="tidy.html">tidy</a>()</code> </p> <hr /><div style="text-align: center;">[Package <em>spotifyr</em> version 2.2.3 <a href="00Index.html">Index</a>]</div> </body></html>