get_activity_settings

To find out the source of driver activity, use the unit/get_activity_settings method.

Copied!
svc=unit/get_activity_settings&params={"itemId":<long>}

Parameters

The request must contain the itemId parameter, which specifies the unit ID.

Example

Below is an example of the unit/get_activity_settings request.

Copied!
svc=unit/get_activity_settings&params={"itemId": 200393}

Response

If the request is completed successfully, the response contains the selected source of driver activity.

Copied!
{
	"type": <int> /* selected source */ 
} 

Otherwise, an error code is returned.

Error codes

Error code Description
4 Invalid input parameters.
7 The unit doesn’t exist, or the user doesn’t have the View detailed object properties access right to it.

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