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