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.

Copied!
svc=unit/update_activity_settings&params={
    "itemId": <long>,
    "type": <uint>
}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Unit ID
type Driver activity source:
  • 0: none
  • 1: assignments and trips
  • 2: parameters from tachograph

Example

Below is an example of the unit/update_activity_settings request.

Copied!
svc=unit/update_activity_settings&params={
    "itemId": 20334,
    "type": 1
}

Response

If the request is completed successfully, an empty object is returned.

Copied!

{} 

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.

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