spotify/models/user.py
async def edit_playlist(self, playlist, *, name=None, public=None, collaborative=None, description=None):
        """Change a playlist’s name and public/private, collaborative state and description.

        Parameters
        ----------
        playlist : Union[str, Playlist]
            The playlist to modify
        name : Optional[str]
            The new name of the playlist.
        public : Optional[bool]
            The public/private status of the playlist.
            `True` for public, `False` for private.
        collaborative : Optional[bool]
            If `True`, the playlist will become collaborative and other users will be able to modify the playlist.
        description : Optional[str]
            The new playlist description
        """
        data = {}

        if name:
            data['name'] = name

        if public:
            data['public'] = public

        if collaborative:
            data['collaborative'] = collaborative

        if description:
            data['description'] = description

        await self.http.change_playlist_details(self.id, str(playlist), data)
async def edit_playlist(self, playlist, *, name=None, public=None, collaborative=None, description=None):
        """Change a playlist’s name and public/private, collaborative state and description.

        Parameters
        ----------
        playlist : Union[str, Playlist]
            The playlist to modify
        name : Optional[str]
            The new name of the playlist.
        public : Optional[bool]
            The public/private status of the playlist.
            `True` for public, `False` for private.
        collaborative : Optional[bool]
            If `True`, the playlist will become collaborative and other users will be able to modify the playlist.
        description : Optional[str]
            The new playlist description
        """
        data = {}

        if name:
            data['name'] = name

        if public:
            data['public'] = public

        if collaborative:
            data['collaborative'] = collaborative

        if description:
            data['description'] = description

        await self.http.change_playlist_details(self.id, str(playlist), data)
async def edit_playlist ( self , playlist , * , name = None , public = None , collaborative = None , description = None ) : data = { } if name : data [ 'name' ] = name if public : data [ 'public' ] = public if collaborative : data [ 'collaborative' ] = collaborative if description : data [ 'description' ] = description await self . http . change_playlist_details ( self . id , str ( playlist ) , data )
Change a playlist’s name and public/private, collaborative state and description.

        Parameters
        ----------
        playlist : Union[str, Playlist]
            The playlist to modify
        name : Optional[str]
            The new name of the playlist.
        public : Optional[bool]
            The public/private status of the playlist.
            `True` for public, `False` for private.
        collaborative : Optional[bool]
            If `True`, the playlist will become collaborative and other users will be able to modify the playlist.
        description : Optional[str]
            The new playlist description
Change a playlist’s name and public / private collaborative state and description .