async def METHOD_NAME(plan_id: str, new_name: str):
    updated_plan = await DbPlan.prisma().update(
        where={
            "id": plan_id,
        },
        data={
            "name": new_name,
        },
    )
    # Must be true because access was authorized
    assert updated_plan is not None
    return PlanView.from_db(updated_plan)