apply_for_leave
Submit a leave request for an employee, specifying dates in ISO format. Automatically computes working days and verifies available balance, then returns the created request.
Instructions
Submit a leave request for an employee.
Dates use ISO format (YYYY-MM-DD). The number of working days is computed automatically and checked against the remaining balance. Returns the created request as a dictionary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| end_date | Yes | ||
| leave_type | Yes | ||
| start_date | Yes | ||
| employee_id | Yes |