Register absence (Planday)
planday_register_absenceRegisters an employee's absence for a date range on a selected Planday absence account or absence type; approval is immediate and shifts remain unchanged.
Instructions
Register an employee's absence from one date to another (both included), on an absence account (accountId, from list_absence_accounts) or by type (absenceType): Planday makes the request as it would for the employee, and it is approved at once. Nobody is notified, the employee's shifts in the period are left as they are, and no open shift is made. No note is sent. Off unless writes are enabled (PLANDAY_ENABLE_WRITES, or the gateway host policy enableWrites).
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": {
"employeeId": "<employeeId>",
"from": "<from>",
"to": "<to>"
},
"name": "planday_register_absence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last day of absence, YYYY-MM-DD. | |
| from | Yes | First day of absence, YYYY-MM-DD. | |
| accountId | No | The absence account (from list_absence_accounts). | |
| employeeId | Yes | The employee. | |
| absenceType | No | The type of absence, when no account is given. |