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.

Copied!
svc=unit/update_video_autopay&params={
  "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.

Copied!
svc=unit/update_video_autopay&params={
    "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:

Copied!
{
    "result": {
        "5523461": {"code": 0},
        "1548776": {"code": 0}
    }
}

Otherwise, error code 4 is returned, indicating that the input parameters are invalid.

If you find a mistake in the text, please select it and press Ctrl+Enter.