Attendance categories are the organisation's absence types, such as sickness or jury service
Lists every absence type held for the organisation. Map your own absence codes to an absence type's id, and check writable before sending absences of that type.
Absence types - Array
General Error
{- "data": [
- {
- "type": "attendanceCategories",
- "id": "1001",
- "attributes": {
- "name": "Jury Service",
- "code": "JUR",
- "unitType": "Days",
- "isTimeBased": false,
- "allowsHalfDays": true,
- "minuteIncrement": null,
- "isSickness": false,
- "writable": true
},
}
]
}Get absence type by ID
Absence type
General Error
{- "data": {
- "type": "attendanceCategories",
- "id": "1001",
- "attributes": {
- "name": "Jury Service",
- "code": "JUR",
- "unitType": "Days",
- "isTimeBased": false,
- "allowsHalfDays": true,
- "minuteIncrement": null,
- "isSickness": false,
- "writable": true
},
}
}