---
title: "/timeoff/approvals/:key"
method: PATCH
path: "/timeoff/approvals/{key}"
---

# /timeoff/approvals/:key

`PATCH /timeoff/approvals/{key}`

Approves or rejects a pending time off approval. Required scope: `w_timeoff`.

## Path parameters

- `key` string, required

## Request body

- object
  - `approver_id` string — Identifier of the member performing the action. Optional for user tokens — when omitted, defaults to the member represented by the token. Required for account tokens.
  - `state` string, required — New approval state. One of: `approved`, `rejected`

## Response `200`

200

- object
  - `id` string
  - `employee_id` string — SPI key of the employee the request belongs to
  - `from_date` string
  - `to_date` string
  - `formatted_period` string
  - `state` string
  - `requesting_total` integer
  - `timeoff_tracking_unit` 'full_days' | 'half_days' | 'hours'
  - `half_days` unknown[]
    - unknown
  - `updated_by` string
  - `category_name` string
  - `pending_approvals` object[]
    - `id` string
    - `approver_id` string

## Other responses

- `400` — 400
- `404` — 404
- `409` — 409

---

[API](https://skmtc.net/workable/apis/account-root.md) · [All operations](https://skmtc.net/workable/apis/account-root/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/workable/account-root/versions/3ead9ec42165/schema)
