---
title: "Updates vehicle"
method: PUT
path: "/vehicles/{vehicleId}"
tags: ["Vehicles"]
---

# Updates vehicle

`PUT /vehicles/{vehicleId}`

## Path parameters

- `vehicleId` integer, required

## Request body

- UpdateVehicleRequest
  - `manufacturer` string — Tool manufacturer
  - `model` string — Tool model
  - `registration_number` string — Registration number
  - `license_plate` string — License plate
  - `date_of_purchase` string, date — Date of purchase
  - `next_maintenance` string, date — Next maintenance date
  - `mot_expires` string, date — When does the MOT expire? (german TÜV)
  - `condition` 'NEW' | 'USED' | 'LEASED' | 'DEFECT' | 'SORTED_OUT' — Vehicle condition
  - `info` string — Information
  - `source` string — The project source
  - `source_external_id` string — The project source_external_id

## Response `200`

The request was successful.

## Other responses

- `401` — The request lacks valid authentication credentials.
- `403` — The token is valid but lacks the permission for this action.
- `404` — The requested resource could not be found.
- `422` — The request was well-formed but contains semantic errors (validation failed).
- `500` — An unexpected error occurred on the server (e.g. a requested relation does not exist).

---

[API](https://skmtc.net/craftboxx/apis/craftboxx-api-documentation.md) · [All operations](https://skmtc.net/craftboxx/apis/craftboxx-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/craftboxx/craftboxx-api-documentation/versions/c01f07a02f77/schema)
