---
title: "Update an overtime request"
method: PUT
path: "/time/overtime_requests/{id}"
tags: ["Time"]
---

# Update an overtime request

`PUT /time/overtime_requests/{id}`

Update an existing overtime request. Only pending overtime requests can be updated.

## Request body

- object
  - `date` string, date — The date of the overtime.
  - `starts_at` string — Start time of the overtime period.
  - `ends_at` string — End time of the overtime period.
  - `comment` string — Reason or description for the overtime request.
  - `project_id` integer — Optional project ID to associate with the overtime request.

## Response `200`

OK

- object
  - `data` OvertimeRequest
    - `id` integer
    - `date` string, date
    - `starts_at` string
    - `ends_at` string
    - `minutes` integer — Duration of overtime in minutes.
    - `comment` string
    - `state` 'pending' | 'approved' | 'rejected'
    - `project` object
      - `id` integer
      - `name` string
    - `employee` object
      - `id` integer
      - `first_name` string
      - `last_name` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `422` — Unprocessable Content

---

[API](https://skmtc.net/peopleforce/apis/company-api.md) · [All operations](https://skmtc.net/peopleforce/apis/company-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peopleforce/company-api/versions/ff612e61a4c3/schema)
