create_leave_type
Set up a new leave type by configuring its name, deduction behavior, approval requirement, calendar visibility, and optional hour or day limits.
Instructions
Create a new leave type (admins only).
Args:
name: Name of the leave type (1–50 chars).
deducted: Whether it deducts from the user's allowance.
requires_approval: Whether bookings need approval.
include_max_off: Whether it counts toward max-absent limits.
is_private: Whether the leave type is private.
color: A hex colour (see list_leave_type_colors).
icon: An icon name (see list_leave_type_icons).
calendar_visibility: Busy, Available or OutOfOffice.
limit_hours: Optional limit in hours.
limit_days: Optional limit in days.
Returns the ID of the new leave type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | ||
| name | Yes | ||
| color | No | ||
| deducted | No | ||
| is_private | No | ||
| limit_days | No | ||
| limit_hours | No | ||
| include_max_off | No | ||
| requires_approval | No | ||
| calendar_visibility | No |