create_leave_allocation
Assign leave days to employees by specifying type, duration, and recipients (individual, department, or all staff) with optional validity dates.
Instructions
Create a leave allocation for employees.
Args:
leave_type_id: Leave type ID (see list_leave_types)
number_of_days: Number of days to allocate
name: Allocation name/reason
employee_id: Specific employee ID (optional)
department_id: Department ID to allocate to all employees in department (optional)
all_employees: If True, allocate to all employees (default: False)
date_from: Start validity date YYYY-MM-DD (optional)
date_to: End validity date YYYY-MM-DD (optional)
Returns:
Confirmation with created allocation ID(s)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leave_type_id | Yes | ||
| number_of_days | Yes | ||
| name | Yes | ||
| employee_id | No | ||
| department_id | No | ||
| all_employees | No | ||
| date_from | No | ||
| date_to | No |