---
title: "PATCH /api/leave/{id}/"
method: PATCH
path: "/api/leave/{id}/"
tags: ["leave"]
---

# PATCH /api/leave/{id}/

`PATCH /api/leave/{id}/`

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Company` string

## Request body

- PatchedLeave
  - `id` string, uuid
  - `employee` string, uuid
  - `employee_name` string
  - `hours` string
  - `total_hours` string
  - `attachments` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `leave_type` 'annual' | 'sick' | 'personal' | 'rdo' | 'maternity' | 'other' — * `annual` - Annual Leave * `sick` - Sick Leave * `personal` - Personal Leave * `rdo` - Personal RDO * `maternity` - Maternity/Paternity Leave * `other` - Other Leave
  - `reason` string
  - `start_date` string, date
  - `end_date` string, date
  - `status` 'pending' | 'approved' | 'rejected' | 'cancelled' — * `pending` - pending * `approved` - approved * `rejected` - rejected * `cancelled` - cancelled
  - `response_reason` string, nullable
  - `approved_by` string, uuid, nullable

## Response `200`

- Leave
  - `id` string, uuid, required
  - `employee` string, uuid
  - `employee_name` string, required
  - `hours` string
  - `total_hours` string, required
  - `attachments` string
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `leave_type` 'annual' | 'sick' | 'personal' | 'rdo' | 'maternity' | 'other' — * `annual` - Annual Leave * `sick` - Sick Leave * `personal` - Personal Leave * `rdo` - Personal RDO * `maternity` - Maternity/Paternity Leave * `other` - Other Leave
  - `reason` string, required
  - `start_date` string, date, required
  - `end_date` string, date, required
  - `status` 'pending' | 'approved' | 'rejected' | 'cancelled', required — * `pending` - pending * `approved` - approved * `rejected` - rejected * `cancelled` - cancelled
  - `response_reason` string, nullable, required
  - `approved_by` string, uuid, nullable, required

---

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