Overview / People & HR / Reject a leave request

Reject a leave request

post https://api.flactrum.com/v1/leave-requests/{leave}/reject
Required scope leaves.write
Success status200
Returns One LeaveRequest object

Parameters

NameInTypeDescription
leave * path string ULID of the record.

Response fields

FieldTypeDescription
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 POST 'https://api.flactrum.com/v1/leave-requests/01m43mzf1x52tqvgjdfsevkrnd/reject' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzf1x52tqvgjdfsevkrnd",
        "employee_id": "01m43mzf1jefgppgbxd0rh2xxe",
        "employee": {
            "id": "01m43mzf1jefgppgbxd0rh2xxe",
            "first_name": "Ümran",
            "last_name": "Akay",
            "full_name": "Ümran Akay",
            "position": "Mutfak",
            "phone": null,
            "email": null,
            "status": "active",
            "branch_id": "01m43mzf19sjsrb1ht5yb5pgsc",
            "user_id": null,
            "hired_at": "2025-11-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-12",
        "days": 2,
        "status": "rejected",
        "reason": null,
        "approved_by": null,
        "approved_at": "2026-10-04T14:27:08+00:00",
        "created_at": "2026-10-04T14:27:08+00:00",
        "updated_at": "2026-10-04T14:27:08+00:00"
    }
}