---
title: "Validate employee leave absences"
method: POST
path: "/management/v2/leave-absence/validate"
tags: ["Leave Absence"]
---

# Validate employee leave absences

`POST /management/v2/leave-absence/validate`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/management/v2/leave-absence/validate`
- Auth: API key in header `OAuth`

Validate employee leave absences.

## Request body

- LeaveAbsenceValidateLeaveAbsenceRequest
  - `employeeId` integer
  - `absences` V2modelLeaveAbsence[]
    - `leaveRuleId` integer
    - `startTime` string, date-time
    - `endTime` string, date-time

## Response `200`

A successful response.

- LeaveAbsenceValidateLeaveAbsenceResponse
  - `success` boolean
  - `warnings` ModelLeaveAbsenceWarnings
    - `balanceLimits` ModelBalanceLimitWarning[]
      - `leaveRuleId` string
      - `leaveRuleName` string
      - `leaveRuleUnit` 'UNIT_UNKNOWN' | 'UNIT_HOUR' | 'UNIT_DAY'
      - `threshold` number, double
      - `exceededAmount` number, double
    - `concurrentLeaveCaps` ModelConcurrentLeaveCapWarning
      - `locationId` integer
      - `locationName` string
      - `maxConcurrentLeave` integer
      - `affectedDates` ModelAffectedDate[]
        - `date` string
        - `employeesOnLeaveCount` integer

---

[API](https://skmtc.dev/deputy/apis/deputy-v2-api.md) - [All operations](https://skmtc.dev/deputy/apis/deputy-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deputy/apis/deputy-v2-api/revisions/78f0278f4608?raw)
