update_video_status
Can only be used in Wialon Hosting.
To enable or disable video billing for a unit, use the unit/update_video_status method. This method requires dealer rights.
svc=unit/update_video_status¶ms={
"units": [<long>, ...],
"status": <int>
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
units | Array of unit IDs. |
status | Pass 0 to disable video billing or pass 1 to enable it. |
Example
Below is an example of the unit/update_video_settings request.
svc=unit/update_video_status¶ms={
"units": [5523461, 1548776],
"status": 1
}
Response
If the request is completed successfully, the response contains unit IDs with response codes (code 0 means that the changes were applied). Example:
[
{result:{5523461:{code:0}}},
{result:{1548776:{code:0}}}
]
Otherwise, error code 4 is returned, indicating that the input parameters are invalid.