update_activity_settings
By default, the driver activity source isn’t selected (0). To set a source, use the unit/update_activity_settings method. For the description of the sources, see Driver activity by online data.
svc=unit/update_activity_settings¶ms={
"itemId": <long>,
"type": <uint>
}
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. |
| 6 | Error updating the settings. |
| 7 | The unit doesn’t exist, or the user doesn’t have the Edit trip, driving and health check settings access right to it. |