---
title: "Updates the given vehicle inspection with new model"
method: PUT
path: "/v1/resourceowner/vehicleinspection3/{vehicleInspectionId}"
tags: ["ResourceOwnerVehicleInspection3"]
---

# Updates the given vehicle inspection with new model

`PUT /v1/resourceowner/vehicleinspection3/{vehicleInspectionId}`

This will update the given vehicle id with a new model.

## Path parameters

- `vehicleInspectionId` integer, required

## Request body

- VehicleInspectionEditModel
  - `VehicleId` integer
  - `InspectionStatusType` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
  - `VehicleDefects` VehicleDefectEditModel[]
    - `VehicleDefectId` integer
    - `DefectType` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31
    - `Notes` string
    - `DefectStatusType` 0 | 1
    - `VehicleDefectAttachments` VehicleDefectAttachmentEditModel[]
      - `VehicleDefectAttachmentId` integer
      - `AttachmentType` 0 | 1 | 2 | 3
      - `Data` string
    - `VehicleDefectComments` VehicleDefectCommentEditModel[]
      - `VehicleDefectCommentId` integer
      - `Comment` string

## Response `200`

The vehicle inspection was saved

## Other responses

- `400` — Bad request, could occur for a number of cases, see returned message
- `403` — Request is forbidden, could occur for a number of reasons, see returned message
- `404` — Not found, the vehicle inspection you tried to update can't be found
- `500` — Internal server error

---

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