---
title: "Update an earning code"
method: PATCH
path: "/earning_codes/{earning_code} (COPY)"
---

# Update an earning code

`PATCH /earning_codes/{earning_code} (COPY)`

## Request

- Base URL: `https://sandbox.checkhq.com`
- URL: `https://sandbox.checkhq.com/earning_codes/{earning_code} (COPY)`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/checkhq/apis/check-api/docs/earning_codes/:earning_code%20(COPY)/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `earning_code` string, required

## Request body

- object
  - `active` boolean: Used to distinguish between codes used only for loading historical data (inactive) and those that you support on an ongoing basis (active).
  - `metadata` string, json: Additional loosely structured information to associate with the earning code

## Response `200`

200

- object

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `5a54f5eb888b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/checkhq/apis/check-api/changes/earning_codes/:earning_code%20%28COPY%29/patch.md)

---

[API](https://skmtc.dev/checkhq/apis/check-api.md) - [All operations](https://skmtc.dev/checkhq/apis/check-api/llms.txt) - [OpenAPI document](https://skmtc.dev/checkhq/apis/check-api/revisions/5a54f5eb888b?raw)
