update_activity_settings
The default source of driver activity is iButton. To set another activity source, use the unit/update_activity_settings command.
svc=unit/update_activity_settings¶ms={
"itemId": <long>,
"type": <int>
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Unit ID |
type | Driver activity source:
|
Example
Below is an example of the unit/update_activity_settings request.
svc=unit/update_activity_settings¶ms={
"itemId": 20334,
"type": 1
}
Response
If the request is completed successfully, an empty object is returned.
{}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Invalid input parameters. |
5 | Error updating the settings. |
7 | The user doesn’t have the required access rights to the unit (ADF_ACL_AVL_UNIT_EDIT_REPORT_SETTINGS) |