update_plan_group_m Sample Call and Response
This example shows a call to update_plan_group_m that renames an existing plan group, updates its description and usage setting, and revises the list of plans associated with it, based on the update_plan_group_m method defined in methods_m_r73.yml, Admin Tools API, release seventy-three.
This example covers every required field, plus the group_plans field used to associate plans with the group. It does not cover the client-defined identifier alternatives to the group and plan identifiers used here.
Sample call
{
"rest_call": "update_plan_group_m",
"output_format": "json",
"client_no": 100024,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"group_no": 900045,
"group_name": "Standard Upgrade Paths",
"group_desc": "Plans eligible for mid-cycle upgrade by customer service representatives and self-service portal users.",
"group_usage": "3",
"group_plans": ["40317", "40711"]
}
The rest_call and output_format fields sit outside the method’s own documented arguments in the yml; the REST layer common to the Admin Tools API adds these two fields to every call. Client_no and auth_key come from the shared param_defaults block.
Group_no identifies the existing plan group being updated; it is one side of an alternative pair with client_plan_change_group_id, and this example uses the Aria-assigned numeric identifier. Group_name, group_desc, and group_usage are the method’s other required fields (nullable: false). Group_usage is an enum of three string values: one means CSR only, two means USS only, and three means both; this example uses three, meaning the group applies to customer service representatives and to the self-service portal alike.
Group_plans lists the plans associated with this group; the yml describes it in prose as a pipe-delimited list, but its type structure (struct: array) marks it as a true JSON array rather than a single delimited string, so it is represented here as ["40317", "40711"] rather than as "40317|40711". This example uses the Aria-assigned plan numbers rather than the alternative, group_plan_ids.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"group_no": 900045
}
An error_code of zero and an error_msg of “OK” indicate that Aria updated the plan group successfully. Group_no echoes back the Aria-assigned identifier for the group that was updated.
Left out of this example are the client_plan_change_group_id alternative identifier and the group_plan_ids alternative, which would list the same associated plans by their client-defined identifiers instead of their Aria-assigned plan numbers.