def METHOD_NAME(self, item_id: UUID4, update_data: CategoryIn):
    """Updates an existing Tag in the database"""
    save_data = mapper.cast(update_data, CategorySave, group_id=self.group_id)
    category = self.mixins.METHOD_NAME(save_data, item_id)
    if category:
        self.publish_event(
            event_type=EventTypes.category_updated,
            document_data=EventCategoryData(operation=EventOperation.update, category_id=category.id),
            message=self.t(
                "notifications.generic-updated-with-url",
                name=category.name,
                url=urls.category_url(category.slug, self.settings.BASE_URL),
            ),
        )
    return category