---
title: "Complete an owned open defect agentically"
method: POST
path: "/api/v1/agent/operations/defects/{eventId}/complete"
tags: ["Defects"]
---

# Complete an owned open defect agentically

`POST /api/v1/agent/operations/defects/{eventId}/complete`

## Request

- Base URL: `https://fleetkeep.co.uk`
- URL: `https://fleetkeep.co.uk/api/v1/agent/operations/defects/{eventId}/complete`
- 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`)

Two-step version-bound action. Completion preserves defect history and replay returns not_found.

## Response `200`

Defect completed and audited.

- DefectCompletion
  - `ok` true, required
  - `completed` true, required
  - `eventId` string, uuid, required
  - `vehicleId` string, uuid, required

## Other responses

- `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.
- `409`: Confirmation is required, invalid, expired or invalidated by an event update.
- `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)
