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 One of the following errors:
  • the resource doesn’t exist, or the user doesn’t have the access right to it that is required for the restored icons: Create, edit, and delete geofences for zoneIcons, Create, edit, and delete drivers for driverIcons, or Create, edit, and delete trailers for trailerIcons;
  • none of the icons from unitIcons were restored, for example, because the units don’t exist or the user doesn’t have the Change icon access right to them.
4 Wrong input parameters.

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