_update
Creates a new Vehicle or changes the settings of a Vehicle with an existing ID.
Parameters
id
The ID of the Vehicle, this parameter is needed to modify an existing Vehicle, if this parameter is not included, a new Vehicle is created instead.
cost_per_distance
The cost per distance variable of the Vehicle.
price_per_distance
The price per distance variable of the Vehicle.
description
A string value which will be the description of the Vehicle.
Example
Result
On Failure
If the "cost_per_distance" parameter is not given a value:
On Success
If a new Vehicle is created, the ID and UUID of the Vehicle are returned:
If the Vehicle already exists, the UUID returned is null:
Last updated