Add/remove units

To add or remove units to/from a retranslator, use the command retranslator/update_units:

svc=retranslator/update_units&params={"itemId":<long>,
				      "units":[	
						{
							"a":<text>,
							"i":<long>,
							"st":<uint>
						}
				      ]}

Parameters

Name Description
itemId retranslator ID
units array of units IDs for retranslation
i unit ID
a hardware unique ID
st time, when retranslation will be stopped (optional parameter)

Response

{
	"rtru":[
		{
			"i":<long>,	/* unit ID */
			"a":<text>,	/* hardware unique ID */
			"st":<uint>	/* time, when retranslation will be stopped */
		}
	]
}