update_video_autopay
Can only be used in Wialon Hosting.
To enable the automatic purchase of traffic packages, use the unit/update_video_autopay method. This method requires dealer rights.
svc=unit/update_video_autopay¶ms={
"units": [<long>],
"value": <int>
}
Parameters
The request must contain the following parameters:
| Parameter | Description |
|---|---|
| units | Array of unit IDs. |
| value | The maximum number of packages per month (the limit) that can be purchased for each unit automatically. The minimum allowed value is -1. |
Example
Below is an example of the unit/update_video_autopay request.
svc=unit/update_video_autopay¶ms={
"units": [5523461,1548776],
"value": 10
}
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},
"1548776": {"code": 0}
}
}
Otherwise, error code 4 is returned, indicating that the input parameters are invalid.