Requests
Get all requests per day
Members
- GETGet all members
- POSTInvite a member
- GETRead a member by id
- PUTUpdate a member
- DELDelete a member
- GETRead a member by Microsoft user id
- GETRead a member by email
- GETRead a member by custom_id
- PUTUpdate approvers for a member
- PUTUpdate a member's allowance
- POSTAdd a member's schedule
- PUTUpdate a member's schedule
Departments
Leave types
Public holidays
Requests
Get all requests per day
Get all requests per day
GET
/
requests_per_day
curl --request GET \
--url https://api.absentify.com/api/v1/requests_per_day \
--header 'X-API-KEY: <api-key>'
[
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"start_at": "morning",
"end_at": "lunchtime",
"leave_unit": "days",
"day": "2023-11-07T05:31:56Z",
"month": "<string>",
"weekday": "<string>",
"fullday": "<string>",
"request_creator_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"leave_type": {
"name": "<string>",
"id": "<string>",
"leave_unit": "days"
},
"approval_process": "Linear_all_have_to_agree",
"cancel_reason": "<string>",
"canceld_by_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"requester_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"reason": "<string>",
"take_from_allowance": true,
"allowance_type": {
"id": "<string>",
"name": "<string>",
"ignore_allowance_limit": true,
"allowance_unit": "days"
},
"workday_absence_duration": 123,
"duration": 123,
"status": "<string>",
"canceld_date": "2023-11-07T05:31:56Z",
"request_approvers": [
{
"reason": "<string>",
"status": "PENDING",
"status_changed_by_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"status_changed_date": "2023-11-07T05:31:56Z",
"approver_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
]
}
]
Authorizations
Query Parameters
Available options:
PENDING
, APPROVED
, DECLINED
, CANCELED
Response
200
application/json
Successful response
The response is of type array
.
Was this page helpful?
curl --request GET \
--url https://api.absentify.com/api/v1/requests_per_day \
--header 'X-API-KEY: <api-key>'
[
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"start_at": "morning",
"end_at": "lunchtime",
"leave_unit": "days",
"day": "2023-11-07T05:31:56Z",
"month": "<string>",
"weekday": "<string>",
"fullday": "<string>",
"request_creator_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"leave_type": {
"name": "<string>",
"id": "<string>",
"leave_unit": "days"
},
"approval_process": "Linear_all_have_to_agree",
"cancel_reason": "<string>",
"canceld_by_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"requester_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"reason": "<string>",
"take_from_allowance": true,
"allowance_type": {
"id": "<string>",
"name": "<string>",
"ignore_allowance_limit": true,
"allowance_unit": "days"
},
"workday_absence_duration": 123,
"duration": 123,
"status": "<string>",
"canceld_date": "2023-11-07T05:31:56Z",
"request_approvers": [
{
"reason": "<string>",
"status": "PENDING",
"status_changed_by_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
},
"status_changed_date": "2023-11-07T05:31:56Z",
"approver_member": {
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
]
}
]