restore_icons
The restore_icons function is used to restore the icons of an item.
svc=item/restore_icons¶ms={"resId":<long>,
"trailerIcons":{<long>:"<text>"},
"driverIcons":{<long>:"<text>"},
"zoneIcons":{<long>:"<text>"},
"unitIcons":{<long>:"<text>"}}
You can restore icons for several items at a time, separating their ID-URL pairs by commas.
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.
{ }
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. |