Editing vehicle information
This API is used to edit a vehicle’s data. You can update information such as type, model, license plate, VIN, year of manufacture, engine power, initial mileage, motor hours, and assign the vehicle to a folder, driver, or subdivision.
How to get data
Method
POST
Request address
To get the data, use the address: https://<server_address>/backend/api.php?
Request parameters
Required:
-
cmd=vehedit — command to edit vehicle information
-
agentid — vehicle identifier or imei — unique device ID
-
node — the number of the node where the command should be executed
Optional:
-
type — vehicle type (ID from vehtypelist command)
-
veh_number — displayed name or license plate of the vehicle
-
veh_type — custom vehicle type (string)
-
folder_id — folder to assign the vehicle; if the folder does not exist, it will be created automatically. Default — root folder
-
model — vehicle model
-
initial_motor_hours — initial motor hours
-
driver_id — driver ID
-
initial_mileage — initial mileage (default 0)
-
year — year of manufacture (default 1900)
-
vin — vehicle VIN
-
engine_horse — engine power
-
organization — organization
-
column — column
-
subdivision — subdivision
Example request
https://<server_address>/backend/api.php?cmd=vehedit&agentid=144&node=1
|
Response
{
"Success": "The vehicle data has been changed"
}
|