Overview /
People & HR /
Update a leave request
Update a leave request
patch
https://api.flactrum.com/v1/leave-requests/{leave}
| Required scope | leaves.write |
| Success status | 200 |
| Returns | One LeaveRequest object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| leave * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| employee_id * | string | — |
| type * | string | — |
| starts_on * | string | — |
| ends_on * | string | On or after starts_on. |
| status | string | — |
| reason | string|null | — |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| employee_id | string | — |
| type | string | Free text: annual, unpaid, sick… |
| starts_on | string | — |
| ends_on | string | — |
| days | integer|null | Inclusive of both ends. |
| status | string | — |
| reason | string|null | — |
| approved_at | string|null | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X PATCH 'https://api.flactrum.com/v1/leave-requests/01m43mzet19kypvfsf76xk2zs9' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"reason": "Aile ziyareti"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzet19kypvfsf76xk2zs9",
"employee_id": "01m43mzesp3ztn3m7y2t1nk0n6",
"employee": {
"id": "01m43mzesp3ztn3m7y2t1nk0n6",
"first_name": "Derin",
"last_name": "Pektemek",
"full_name": "Derin Pektemek",
"position": "Barista",
"phone": null,
"email": null,
"status": "active",
"branch_id": "01m43mzesbr26zpq4kd1rbkkjg",
"user_id": null,
"hired_at": "2023-12-04",
"left_at": null,
"monthly_gross_salary": null,
"insurance_rate": null,
"note": null,
"created_at": "2026-10-04T14:27:08+00:00",
"updated_at": "2026-10-04T14:27:08+00:00"
},
"type": "annual",
"starts_on": "2026-10-11",
"ends_on": "2026-10-15",
"days": 5,
"status": "pending",
"reason": "Aile ziyareti",
"approved_by": null,
"approved_at": null,
"created_at": "2026-10-04T14:27:08+00:00",
"updated_at": "2026-10-04T14:27:08+00:00"
}
}