---
title: "Creates a new vehicle inspection"
method: POST
path: "/v1/resourceowner/vehicleinspection"
tags: ["ResourceOwnerVehicleInspection"]
---

# Creates a new vehicle inspection

`POST /v1/resourceowner/vehicleinspection`

This will create a new vehicle inspection and make the association you set.

## Request body

- VehicleInspectionCreateModel
  - `VehicleId` integer
  - `InspectionDateUtc` string, date-time
  - `VehicleDefects` VehicleDefectCreateModel[]
    - `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
    - `VehicleDefectStatus` VehicleDefectStatusCreateModel[]
      - `DefectStatus` 0 | 1
    - `VehicleDefectAttachments` VehicleDefectAttachmentCreateModel[]
      - `AttachmentType` 0 | 1 | 2 | 3
      - `Data` string
    - `VehicleDefectComments` VehicleDefectCommentsCreateModel[]
      - `VehicleDefectId` integer
      - `Comment` string

## Response `200`

A link in the header is returned to the newly created vehicle inspection

## 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
- `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)
