update_leave_type
Update an existing leave type by providing its ID and new name. Configure additional properties like deduction, approval, visibility, and limits.
Instructions
Update an existing leave type (admins only). name is required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"leave_type_id": "<leave_type_id>",
"name": "<name>"
},
"name": "update_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 | ||
| leave_type_id | Yes | ||
| include_max_off | No | ||
| requires_approval | No | ||
| calendar_visibility | No |