def change_details!(**data)
      User.oauth_put(@owner.id, @path, data.to_json)
      data.each do |field, value|
        instance_variable_set("@#{field}", value)
      end
      @snapshot_id = nil
      self
    end
def change_details!(**data)
      User.oauth_put(@owner.id, @path, data.to_json)
      data.each do |field, value|
        instance_variable_set("@#{field}", value)
      end
      @snapshot_id = nil
      self
    end
Change name and public/private state of playlist in user's Spotify account. Changing a public playlist requires
 the *playlist-modify-public* scope; changing a private playlist requires the *playlist-modify-private* scope.

 @param name   [String]  Optional. The new name for the playlist.
 @param public [Boolean] Optional. If true the playlist will be public, if false it will be private.
 @return [Playlist]

 @example
           playlist.name   #=> "Movie Soundtrack Masterpieces"
           playlist.public #=> true

           playlist.change_details!(name: 'Movie Tracks', public: false)

           playlist.name   #=> "Movie Tracks"
           playlist.public #=> false