def METHOD_NAME(api_client: TestClient, unique_user: TestUser, plan_rule: PlanRulesOut):
    payload = {
        "groupId": unique_user.group_id,
        "day": "tuesday",
        "entryType": "lunch",
    }
    response = api_client.put(
        api_routes.groups_mealplans_rules_item_id(plan_rule.id), json=payload, headers=unique_user.token
    )
    assert response.status_code == 200
    # Validate the response data
    response_data = response.json()
    assert response_data["id"] == str(plan_rule.id)
    assert response_data["groupId"] == str(unique_user.group_id)
    assert response_data["day"] == "tuesday"
    assert response_data["entryType"] == "lunch"
    assert len(response_data["categories"]) == 0