update_unique_id2

For device types with two modems, you can specify a second unique ID. To set a new value for the second unique ID, use the unit/update_unique_id2 method:

Copied!
svc=unit/update_unique_id2&params={
  "itemId": <long>,         
  "uniqueId2": <text>       
}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Unit ID.
uniqueId2 New value of the second unique ID.

Response

If the request is completed successfully, a response in the following format is returned:

Copied!
{
    "uid2": <text> 
}

Otherwise, an error code is returned.

Error codes

Error code Description
4 Wrong input parameters.
6 Failed to update the second unique ID.
7 The unit doesn’t exist, or the user doesn’t have the Edit connectivity settings access right to it.
1002 This unique ID already exists.

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