Introduction
Enables or disables auto-enrollment for a Device Add-In on a specific database. When enabled, future devices that meet the Add-In's auto-enrollment criteria are enrolled automatically without manual intervention. Only reseller users can call this method. when is false, the auto-enrollment configuration (including any group filters) is removed in MyGeotab. By default the previously auto-enrolled devices remain enrolled; set to true to also unenroll them as part of the disable operation. The flag is only honored when is false; it is ignored when enabling.
Parameters

accountId

The account for access validation. Accepts either the integer account id (e.g. 90) or the string ERP/reseller account code (e.g. "STAF01"); the API auto-detects which form was supplied.

apiKey

The API key (User ID) of the authenticated reseller.

databaseName

The database name to apply the change to.

enableAutoEnroll

True to enable auto-enrollment; false to disable.

sessionId

The session ID of the authenticated reseller.

solutionId

The Solution ID of the Add-In.

unenrollDevices

Optional. Only honored when is false. When true, devices that were previously auto-enrolled will also be unenrolled. Defaults to false (devices stay enrolled, auto-enrollment is simply turned off going forward).
Return value
ApiSetAddInAutoEnrollResponse echoing the resulting state.
Code samples

Loading API Runner...