add_video_packets
To add video traffic packages to a unit, use the unit/add_video_packets command. Dealer rights are required to complete the request.
svc=unit/add_video_packets¶ms={
"units":[<long>,...],
"packets":<int>
}
Parameters
Parameter | Description |
---|---|
units | Array of unit IDs. |
packets | Number of added packages. |
Example
svc=unit/add_video_packets¶ms={"units":[5523461,1548776],"packets":1}
Response
If the request is completed successfully, unit IDs with response codes are returned. The value 0 in the code means that the changes have been applied.
[
{result:{5523461:{code:0}}},
{result:{1548776:{code:0}}}
]
If the request hasn’t been completed, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Invalid input parameters. |
7 | Video monitoring service not enabled. |