'Saves a newly created or modified object to disk.
Calling save is required for any changes to persist.'

def save_item(self, what, object_id, token, editmode='bypass'):

    self._log(('save_item(%s)' % what), object_id=object_id, token=token)
    obj = self.__get_object(object_id)
    self.check_access(token, ('save_%s' % what), obj)
    if (editmode == 'new'):
        self.api.add_item(what, obj, check_for_duplicate_names=True)
    else:
        self.api.add_item(what, obj)
    return True
