def METHOD_NAME(
    *, org_id: int, upsert_data: OrganizationCreateAndUpdateOptions
) -> Organization:
    with outbox_context(transaction.atomic(router.db_for_write(Organization))):
        org, created = Organization.objects.update_or_create(id=org_id, defaults=upsert_data)
        return org