Skip to main content

Update vehicle (POST alternative)

POST 

/truckers/vehicles/edit

Alternative version of the PUT / endpoint for updating vehicles using POST. Functionally equivalent to PUT / but using the POST method.

Use cases:

  • Compatibility with clients that do not support PUT
  • Updating from HTML forms that only allow GET/POST

Modifiable fields:

  • type: Vehicle type
  • brand: Brand
  • model: Model
  • year: Year
  • images: Images (completely replaced)

Request example:

{
type: RIGID,
brand: Volvo,
model: FH16,
year: 2022
}

Request

Responses

Vehicle successfully updated