---
title: "Correct a label mapping"
method: PATCH
path: "/v1/sheet-capture/specs/{specId}/mappings/{labelKey}"
tags: ["Workbook Capture"]
---

# Correct a label mapping

`PATCH /v1/sheet-capture/specs/{specId}/mappings/{labelKey}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/sheet-capture/specs/{specId}/mappings/{labelKey}`
- Auth: HTTP bearer

Corrects one label's mapping; the correction counts as approved and every later projection uses it. With `scope: header_leaf` the metric or ignore decision applies to every column header ending in the same label. Requires scope `documents:write`.

## Path parameters

- `specId` string, required
- `labelKey` string, required

## Request body

- object
  - `scope` string: `label` (default) or `header_leaf`.
  - `metric` string: The metric the label maps to.
  - `set` object: Field values the label sets.
  - `ignore` boolean: Ignore the label.

## Response `200`

The result.

- object

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/sheet-capture/specs/:specId/mappings/:labelKey/patch.md)

---

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