/**
  * Update the details of a user's playlist.
  * Requires a valid access token.
  * https://developer.spotify.com/web-api/change-playlist-details/
  *
  * @param array|object $data Data for the new playlist.
  * - name string Required. Name of the playlist
  * - public bool Optional. Whether the playlist should be public or not. Default is true.
  *
  * @return bool
  */
 public function updateUserPlaylist($userId, $playlistId, $data)
 {
     $data = json_encode($data);
     $response = Request::api('PUT', '/v1/users/' . $userId . '/playlists/' . $playlistId, $data, array('Authorization' => 'Bearer ' . $this->accessToken, 'Content-Type' => 'application/json'));
     return $response['status'] == 200;
 }