update_phone

To set a new phone number for a unit, use the unit/update_phone command.

Copied!
svc=unit/update_phone&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!
{
    "ph": <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.

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

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also