def save(self, inplace=True):
        """
        Saves modification to the api server.
        """
        modified = self._modified_data()
        if bool(modified):
            new_data = self.permissions.copy()
            new_data.update(modified['permissions'])
            data = {
                'permissions': new_data
            }
            url = six.text_type(self.href)
            self._api.patch(url=url, data=data, append_base=False)
        else:
            raise ResourceNotModified()
def save ( self , inplace = True ) : modified = self . _modified_data ( ) if bool ( modified ) : new_data = self . permissions . copy ( ) new_data . update ( modified [ 'permissions' ] ) data = { 'permissions' : new_data } url = six . text_type ( self . href ) self . _api . patch ( url = url , data = data , append_base = False ) else : raise ResourceNotModified ( )
Saves modification to the api server.