Skip to content

Vehicle avatar

API path: /vehicle/avatar.


Assigns icon_id (from standard icon set) to specified vehicle.

required sub-user rights: vehicle_update


name description type
vehicle_id Id of the vehicle. int
icon_id Id of the icon. int

icon_id can be null – this means that uploaded avatar should be used instead of icon.


curl -X POST '' \
    -H 'Content-Type: application/json' \ 
    -d '{"hash": "a6aa75587e5c59c32d347da438505fc3", "vehicle_id": 127722, "icon_id": 1342}'
{ "success": true }
  • 201 – Not found in the database (when vehicle with vehicle_id not found).


Uploads avatar image for specified vehicle. Then it will be available from [api_base_url]/<api_static_path>/vehicle/avatars/<file_name> e.g.

required sub-user rights: vehicle_update

avatar_file_name returned in response and will be returned from /vehicle/list.

MUST be a POST multipart request (multipart/form-data), with one of the parts being an image file upload (with the name "file").

File part mime type must be one of :

  • image/jpeg or image/pjpeg
  • image/png
  • image/gif


name description type
tag_id Tag id. int
file Image file string
redirect_target Optional. URL to redirect string

If redirect_target passed a return redirect to ?response=.


    "success": true,
    "value": "abcdef123456789.png"
  • value - string. Avatar file name.


  • 201 – Not found in the database (when vehicle with tag_id not found).
  • 233 – No data file (if file part not passed).
  • 234 – Invalid data format (if passed file with unexpected mime type).
  • 254 – Cannot save file (on some file system errors).

Last update: October 23, 2020