Update
PUT https://api.pegasusgateway.com/vehicles/:id
Request Body
{"name"=>"Vehicle test", "alias"=>"delta", "device"=>353897871260263, "year"=>"2023", "make"=>"Honda", "model"=>"Civic", "license_plate"=>"JJY9AP", "color"=>"Red", "vin"=>"", "tank_volume"=>nil, "primary"=>nil, "tank_unit"=>nil, "range"=>nil, "description"=>"", "groups"=>[2], "properties"=>{"custom-object"=>{"key"=>"value"}, "foo"=>"bar", "baz"=>true, "ree"=>3}}
RESPONSES
status: OK
{"info":{"range_unit":"mile","description":null,"tank_volume":24,"color":"Black","make":"Chevy","vin":null,"license_plate":"TAHOES","alias":null,"range":288,"year":"2020","model":"Tahoe","tank_unit":"gallon"},"associations":[{"device":867698041099824,"time":1591126002,"id":5334,"association":true,"vehicle":3665}],"__updated":1665498863.206594,"associated_at":1591126002,"name":"IE_TAHOE_S4","__created":1594146151.792137,"primary":1090,"properties":{"marker":{"fixed":false,"type":"transportation","scale":1,"background":"#FFFFFF00","icon":"entity_icons_transportation-pickup-truck"},"$sensor_ecu":[{"units_abbrev":"g","units":"gallon","name":"ECU TANQUE","tank_volume":100,"decimals":1,"priority":false,"source":"ecu_fuel_level_real","sensor_type":"fuel","version":"r","device":"syrus","type":"float"}],"$tracking":{"geofences":[164],"checkpoints":[{"radius":200,"name":"Sample geofence","coordinates":[-80.1798,25.8245]}]}},"images":{"photo":false,"idle_icon":false,"off_icon":false,"on_icon":false,"icon":false},"token":null,"groups":[404,500,712,805,813,1090,1147,1783,3400,4588,5578,6436],"__version":"7.0.0-segments","device":867698041099824,"configuration":"r056","type":"vehicle","id":3665}