code: def update(self):
          
          args = {attr: getattr(self, attr) for attr in self.to_update}
          args['id'] = self.id
          _perform_command(self.owner, 'filter_update', args)
docs: Update the filter's details on Todoist.
  
          You must call this method to register any local attribute changes with
          Todoist.
  
          >>> from pytodoist import todoist
          >>> user = todoist.login('john.doe@gmail.com', 'password')
          >>> overdue_filter = user.add_filter('Overdue', todoist.Query.OVERDUE)
          >>> overdue_filter.name = 'OVERDUE!'
          ... # At this point Todoist still thinks the name is 'Overdue'.
          >>> overdue_filter.update()
          ... # Now the name has been updated on Todoist.