update_phone2

To update the second phone number for a unit, use the unit/update_phone2 method.

Copied!
svc=unit/update_phone2&params={
    "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:

Copied!
{
    "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 The unit doesn’t exist, or the user doesn’t have the Edit connectivity settings access right to it.
1002 This phone number is already used for another unit.

If you find a mistake in the text, please select it and press Ctrl+Enter.