Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the possibility to update vehicle_type in /vehicles update #765

Open
S-eb opened this issue May 3, 2022 · 1 comment
Open

Add the possibility to update vehicle_type in /vehicles update #765

S-eb opened this issue May 3, 2022 · 1 comment
Labels
Agency Specific to the Agency API Unification Work to unify MDS APIs like Agency, Provider with push/pull and data models

Comments

@S-eb
Copy link
Collaborator

S-eb commented May 3, 2022

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.

@schnuerle schnuerle added the Agency Specific to the Agency API label May 5, 2022
@schnuerle
Copy link
Member

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 schnuerle added the Unification Work to unify MDS APIs like Agency, Provider with push/pull and data models label May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agency Specific to the Agency API Unification Work to unify MDS APIs like Agency, Provider with push/pull and data models
Projects
None yet
Development

No branches or pull requests

2 participants