---
title: "Update an earning rate"
method: PATCH
path: "/earning_rates/{earning_rate} (COPY)"
---

# Update an earning rate

`PATCH /earning_rates/{earning_rate} (COPY)`

## Request

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

## Path parameters

- `earning_rate` string, required

## Request body

- object
  - `name` string
  - `active` boolean
  - `metadata` string, json

## Response `200`

200

- EarningRate
  - `id` string
  - `amount` string
  - `period` string: May be `hourly`, `annually`, or `piece`
  - `employee` string
  - `company` string: ID of the company that this earning rate relates to (via the employee).
  - `name` string
  - `workweek_hours` number, float
  - `active` boolean
  - `metadata` 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_rates/:earning_rate%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)
