generic_create_or_update(object, opts)