update_units
To add units to a retranslator or remove them from it, use the retranslator/update_units method.
svc=retranslator/update_units¶ms={"itemId":<long>,
                      "units":[{"a":<text>,
                        "i":<long>,
                        "st":<uint>}, ...],
                      "callMode":<text>
}
Set callMode to add and include a description for each object in the units array.
Parameters
The request can contain the following parameters. The required parameters are marked with an asterisk (*).
| Name | Description | 
|---|---|
| itemId* | Retranslator ID. | 
| units* | Array of units IDs for retransmission. | 
| i* | Unit ID. | 
| a* | Hardware unique ID. | 
| st | Time when the retransmission stops. The parameter is optional. | 
| callMode | Mode: add or remove. The parameter is optional. | 
Response
{
    "rtru":[
        {
            "i":<long>,   /* Unit ID. */
            "a":<text>,   /* Hardware unique ID. */
            "st":<uint>   /* Time when retransmission stopped. */
        }
    ]
}
Otherwise, an error code is returned.
Error codes
| Error code | Description | 
|---|---|
| 7 | No ADF_ACL_AVL_RETR_EDIT_SETTINGS access right to the retranslator. | 
| 4 | Failed to parse the input text or no current retranslator units. | 
| 6 | Failed to generate the response. |