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:
svc = unit/update_unique_id2¶ms = {
"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:
{
"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 | No ADF_ACL_AVL_UNIT_EDIT_HW access right to the unit. |
| 1002 | This unique ID already exists. |