---
title: "Submit a task correction (active learning)"
method: POST
path: "/api/tasks/{task_id}/correct"
tags: ["learning"]
---

# Submit a task correction (active learning)

`POST /api/tasks/{task_id}/correct`

## Request

- Base URL: `https://catalyst.stratogenic.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://catalyst.stratogenic.ai/api/tasks/{task_id}/correct`
- Auth: API key in header `X-API-Key`

Captures a user correction to a normalised task and updates the tenant’s learned rule base.

Flow:
1) Loads the current task state
2) Applies the submitted field corrections
3) Learns rules from the before/after diff
4) Persists the updated execution state
5) Returns learning stats and rules generated

Designed for feedback loops where humans correct classification (owner, domain, stage, priority).

## Path parameters

- `task_id` string, required

## Headers

- `X-Source-App` string, nullable
- `X-Touched-By-Tool` string, nullable
- `X-Touched-By-User` string, nullable
- `X-Touched-By-Agent` string, nullable
- `X-External-User-Id` string, nullable
- `X-Run-Id` string, nullable

## Request body

- TaskCorrectionRequest: User's corrections to a task.
  - `corrections` object, required
  - `reason` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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