mobility-data-specification
mobility-data-specification copied to clipboard
Add the possibility to update vehicle_type in /vehicles update
Is your feature request related to a problem? Please describe.
Vehicle_types are more fluid than it seems and it happens frequently that during a mobility program launch, vehicles initially registered with a given vehicle_type have to be updated.
Describe the solution you'd like
Give possibility to change the vehicle_type in the /vehicles endpoint
Endpoint: /vehicles/{device_id} Method: PUT
Body Params:
Field | Type | Required/Optional | Field Description |
---|---|---|---|
vehicle_id | String | Required | Vehicle Identification Number (vehicle_id) visible on vehicle |
vehicle_type | Enum | Required | Vehicle Types |
Is this a breaking change
- Yes, breaking
Impacted Spec
For which spec is this feature being requested?
-
agency
Describe alternatives you've considered
No real alternative at this point.
Interesting. @avatarneil @marie-x do you think a new endpoint here is the solution to this, or is there some other way?
Certainly this could be part of our Unification work for 2.0.