---
updatedAt: 2025-10-12T20:29:10.000Z
agentTools:
  projectIndex: https://docs.checkhq.com/llms.txt
---

# Update an earning rate

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "check-api",
    "version": "2025-01-01"
  },
  "servers": [
    {
      "url": "https://sandbox.checkhq.com"
    }
  ],
  "components": {
    "schemas": {
      "EarningRate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "rte_aOSqW0QTKcE1iVU1C5"
          },
          "amount": {
            "type": "string",
            "example": "50000.00"
          },
          "period": {
            "type": "string",
            "description": "May be `hourly`, `annually`, or `piece`",
            "example": "annually"
          },
          "employee": {
            "type": "string",
            "example": "emp_aslkj192j3laksdj"
          },
          "company": {
            "type": "string",
            "description": "ID of the company that this earning rate relates to (via the employee).",
            "example": "com_omSihPyKgr68wxFQ0xTn",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "example": "Dishwasher Weekend Rate"
          },
          "workweek_hours": {
            "type": "number",
            "format": "float",
            "example": 40
          },
          "active": {
            "type": "boolean",
            "example": true
          },
          "metadata": {
            "type": "object",
            "example": {}
          }
        }
      }
    },
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "YOUR_API_KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/earning_rates/{earning_rate}": {
      "patch": {
        "summary": "Update an earning rate",
        "description": "",
        "operationId": "update-an-earning-rate",
        "parameters": [
          {
            "name": "earning_rate",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "metadata": {
                    "type": "string",
                    "format": "json"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": \"rte_aOSqW0QTKcE1iVU1C5\",\n    \"amount\": \"50000.00\",\n    \"period\": \"annually\",\n    \"employee\": \"emp_aslkj192j3laksdj\",\n    \"company\": \"com_omSihPyKgr68wxFQ0xTn\",\n    \"name\": \"Dishwasher Weekend Rate\",\n    \"workweek_hours\": 40.0,\n    \"active\": true,\n    \"metadata\": {}\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/EarningRate"
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```