---
title: "Create Correction"
method: POST
path: "/api/behaviour/corrections"
tags: ["behaviour"]
---

# Create Correction

`POST /api/behaviour/corrections`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/behaviour/corrections`
- Auth: HTTP bearer

## Request body

- CorrectionRequest
  - `target_type` string, required: stream | habit | trait
  - `target_key` string, required
  - `correction` string, required: not_a_bill | one_off | transfer | not_a_habit | dismiss | confirm
  - `note` string, nullable

## Response `201`

Successful Response

- CorrectionResponse
  - `id` string, required
  - `target_type` string, required
  - `target_key` string, required
  - `correction` string, required
  - `locked` boolean, required
  - `note` string, nullable
  - `created_at` string, nullable

## Other responses

- `422`: Validation Error

---

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