---
title: "Create an overtime request"
method: POST
path: "/time/overtime_requests"
tags: ["Time"]
---

# Create an overtime request

`POST /time/overtime_requests`

Creates an overtime request for an employee.

## Request body

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

## Response `201`

Created

- 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)
