Add an absence
Add a full-length absence for an employee in a unit.
POST https://cotlet.dev/api/v1/quinyx/employees/{employee_id}/absences
write Confirm
Does what the Add Absence panel does: it picks the employee, dates, absence type and who must approve, and saves. The response shows the employee's Time Tracker balance. Part-time absences, split per shift or per day, are not part of this tool. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| employee_id string required | string | Employee id from list_employees. |
| group_id string required | string | Unit id from list_groups. |
| start string required | string | Start, YYYY-MM-DD or YYYY-MM-DDTHH:MM. |
| end string required | string | End, same format as start. |
| absence_type string required | string | Name of an absence type your account has. |
| all_day boolean | boolean | Treat the absence as whole days. Default false. |
| approval string | string | Who must approve the absence: employee, manager or both. |
| comment string | string | Optional comment. |
Request
curl -X POST https://cotlet.dev/api/v1/quinyx/employees/employee_8c41d2/absences \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"group_id":"group_8c41d2","start":"start","end":"end","absence_type":"absence type"}' result = client.call("quinyx", "add_absence", {"employee_id":"employee_8c41d2","group_id":"group_8c41d2","start":"start","end":"end","absence_type":"absence type"}) const result = await cotlet.call('quinyx', 'add_absence', {"employee_id":"employee_8c41d2","group_id":"group_8c41d2","start":"start","end":"end","absence_type":"absence type"}); cotlet call quinyx add_absence --data '{"employee_id":"employee_8c41d2","group_id":"group_8c41d2","start":"start","end":"end","absence_type":"absence type"}' Example response
{
"absence_id": "66104",
"employee": "Maria Silva",
"absence_type": "Sick leave",
"start": "2026-10-26",
"end": "2026-10-27",
"all_day": true,
"approval": "manager",
"status": "saved"
}