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

NameDescription
resIdResource ID.
trailerIconsTrailer icon parameters.
driverIconsDriver icon parameters.
zoneIconsGeofence icon parameters.
unitIconsUnit 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:

CodeDescription
7Failed 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).
4Wrong input parameters.
Download PDF file
Download Word document

See also