update_phone2
To update the second phone number for a unit, use the unit/update_phone2 command.
svc=unit/update_phone2¶ms={
"itemId": <long>,
"phoneNumber": <text>
}
The character + in the phone number must be replaced by the code %2B.
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Unit ID. |
phoneNumber | New phone number. |
Response
If the request is completed successfully, a response in the following format is returned:
{
"ph2": <text> /* Phone number. */
}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Wrong input parameters. |
6 | Failed to update the phone number. |
7 | No ADF_ACL_AVL_UNIT_EDIT_HW access right to the unit. |
1002 | The new phone number matches the old one, or this number is already used for another unit. |