---
title: "Update Fault"
method: PATCH
path: "/faults/{id}"
tags: ["Faults"]
---

# Update Fault

`PATCH /faults/{id}`

## Request

- Base URL: `https://secure.fleetio.com/api`
- URL: `https://secure.fleetio.com/api/faults/{id}`
- Auth: API key in header `Authorization` and API key in header `Account-Token`
- TypeScript: <https://skmtc.dev/fleetio/apis/fleetio-developer-api/docs/faults/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a Fault Record

## Path parameters

- `id` string, required

## Request body

- object
  - `vehicle_id` integer
  - `code` string: The diagnostic trouble code. Must correspond with an existing [Fault Rule](/docs/api/fault-rules).
  - `count` integer: The number of times this Fault has occurred.
  - `description` string: A short description about the problem.
  - `external_id` string: An external identifier for the Fault, if applicable.
  - `last_occurred_at` string, date-time: The date and time when the Fault last occurred. We recommend using [ISO-8601](/docs/overview/date-formatting) formatted dates to avoid ambiguity.
  - `name` string: The name or label for the Fault.
  - `status` 'open' | 'resolved' | 'ignored': The status of the Fault.
  - `source` string: The source or origin of the Fault.

## Response `204`

OK

## Other responses

- `401`: Request could not be authenticated
- `403`: Insufficient permission to perform this operation
- `404`: The requested resource could not be located
- `422`: Unprocessable Entity
- `500`: Something unexpected happened

---

[API](https://skmtc.dev/fleetio/apis/fleetio-developer-api.md) - [All operations](https://skmtc.dev/fleetio/apis/fleetio-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fleetio/apis/fleetio-developer-api/revisions/49558d744bd7?raw)
