mobility-data-specification icon indicating copy to clipboard operation
mobility-data-specification copied to clipboard

Add the possibility to update vehicle_type in /vehicles update

Open S-eb opened this issue 2 years ago • 3 comments

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.

S-eb avatar May 03 '22 16:05 S-eb

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.

schnuerle avatar May 05 '22 13:05 schnuerle