---
title: "Report a defect for an owned vehicle"
method: POST
path: "/api/v1/operations/defects"
tags: ["Defects"]
---

# Report a defect for an owned vehicle

`POST /api/v1/operations/defects`

## Request

- Base URL: `https://fleetkeep.co.uk`
- URL: `https://fleetkeep.co.uk/api/v1/operations/defects`
- Auth: OAuth 2 (authorization code, authorization URL `https://fleetkeep.co.uk/auth/oauth2/authorize`, token URL `https://fleetkeep.co.uk/auth/oauth2/token`, scopes: `operations:write`)

## Request body

- DefectInput
  - `vehicleId` string, uuid, required
  - `title` string, required
  - `notes` string, required
  - `priority` 'low' | 'normal' | 'high' | 'safety_critical', required
  - `reportedBy` string, required
  - `followUpAction` string, required

## Response `201`

Defect created and audited.

- object
  - `defect` DefectEvent, required
    - `id` string, uuid, required
    - `vehicleId` string, uuid, required
    - `registration` string, required
    - `vehicleLabel` string, nullable, required
    - `title` string, required
    - `notes` string, nullable, required
    - `priority` 'low' | 'normal' | 'high' | 'safety_critical', required
    - `reportedBy` string, nullable, required
    - `followUpAction` string, nullable, required
    - `status` 'open' | 'completed', required
    - `completedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required

## Other responses

- `400`: The request body or query was invalid.
- `401`: Missing or invalid Bearer access token.
- `403`: Token does not include the required scope.
- `404`: The requested resource does not exist on the authorised user's account, is the wrong event type, or is immutable history for this operation.
- `429`: Per-token rate limit exceeded (60 requests per minute).

---

[API](https://skmtc.dev/fleetkeep/apis/fleetkeep-api.md) · [All operations](https://skmtc.dev/fleetkeep/apis/fleetkeep-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fleetkeep/apis/fleetkeep-api/revisions/ace19bc0d64d?raw)
