⚠️ APIv2 is legacy
APIv2 is considered legacy and is no longer recommended for new integrations.
We strongly encourage you to use APIv4 for all new integrations and to migrate existing integrations where possible.
Please refer to our latest APIv4 documentation for up-to-date information and integration guidelines:
Click here to view the APIv4 example documentation - your own documentation is at https://[your-instance].langlion.com/api/v4/docs
List all attendance statuses - GET /api/v2/attendanceStatus
Returns a list of the attendance statuses. Statuses are returned sorted by 'id' field in increasing order.
Request
1curl -G 'https://test.langlion.com/api/v2/attendanceStatuses' \
2--header 'Authorization: Bearer af2b3df9c671d5413fc5c38b467794782b4047705ac3...'Response
1{
2 "data": {
3 "attendanceStatuses": [
4 {
5 "id": 20,
6 "name": "Absent",
7 "shortName": null,
8 "type": 2,
9 "typeName": "absent",
10 "color": "993333"
11 },
12 {
13 "id": 23,
14 "name": "Present",
15 "shortName": null,
16 "type": 1,
17 "typeName": "present",
18 "color": "00CC00"
19 },
20 {
21 "id": 26,
22 "name": "Absent online",
23 "shortName": null,
24 "type": 2,
25 "typeName": "absent",
26 "color": "CC6600"
27 },
28 {
29 "id": 29,
30 "name": "Present online",
31 "shortName": null,
32 "type": 1,
33 "typeName": "present",
34 "color": "FFFF00"
35 }
36 ]
37 }
38}Parameters
Required
No required parameters.
Optional
No optional parameters.