restore_icons

The restore_icons function is used to restore the icons of an item.

Copied!
svc=item/restore_icons&params={"resId":<long>,
			       			   "trailerIcons":{<long>:"<text>"},
			       			   "driverIcons":{<long>:"<text>"},
			       			   "zoneIcons":{<long>:"<text>"},
			       			   "unitIcons":{<long>:"<text>"}}

 is the item/propitem ID.
is the icon URL on the backup server.

Parameters

Name Description
resId Resource ID.
trailerIcons Trailer icon parameters.
driverIcons Driver icon parameters.
zoneIcons Geofence icon parameters.
unitIcons Unit icon parameters.

Returned result

If the request is successful, an empty JSON is returned.

Copied!
{ }

If not, an error code is returned. Possible error codes:

Code Description
7 Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_EDIT_ZONES or ADF_ACL_AVL_RES_EDIT_DRIVERS or ADF_ACL_AVL_RES_EDIT_TRAILERS).
4 Wrong input parameters.

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