Appearance
OpenAPI Spec
List UserAbsences
GET
/v1/user-absences
List UserAbsences
Authorizations
apiKey
Type
HTTP (bearer)
Parameters
Query Parameters
page
Type
number
Minimum
0Default
0size
Type
number
Minimum
1Maximum
20Default
10id
userId
typeId
needApprovalById
declinedById
compensatedById
startsAt
endsAt
requestedAt
approvedAt
declinedAt
status
Type
string
Valid values
"idle""draft""approved""declined"externalId
createdAt
updatedAt
Responses
List response
application/json
{
"page": 0,
"pages": 0,
"size": 10,
"items": [
{
"id": 0,
"typeId": 0,
"startsAt": "string",
"endsAt": "string",
"userId": 0,
"requestedAt": "string",
"approvedAt": "string",
"noteForApproval": "string",
"needApprovalById": 0,
"declinedAt": "string",
"declinedNote": "string",
"declinedById": 0,
"compensationApprovedAt": "string",
"compensationDeclinedAt": "string",
"compensatedById": 0,
"workDays": 0,
"status": "string",
"externalId": "string",
"createdAt": "string",
"updatedAt": "string"
}
]
}
Create a new UserAbsence
POST
/v1/user-absences
Create a new UserAbsence
Authorizations
apiKey
Type
HTTP (bearer)
Request Body
application/json
{
"typeId": 0,
"startsAt": "string",
"endsAt": "string",
"userId": 0,
"requestedAt": "string",
"approvedAt": "string",
"noteForApproval": "string",
"needApprovalById": 0,
"declinedAt": "string",
"declinedNote": "string",
"declinedById": 0,
"compensationApprovedAt": "string",
"compensationDeclinedAt": "string",
"compensatedById": 0,
"externalId": null
}
Responses
UserAbsence found
application/json
{
"id": 0,
"typeId": 0,
"startsAt": "string",
"endsAt": "string",
"userId": 0,
"requestedAt": "string",
"approvedAt": "string",
"noteForApproval": "string",
"needApprovalById": 0,
"declinedAt": "string",
"declinedNote": "string",
"declinedById": 0,
"compensationApprovedAt": "string",
"compensationDeclinedAt": "string",
"compensatedById": 0,
"workDays": 0,
"status": "string",
"externalId": "string",
"createdAt": "string",
"updatedAt": "string"
}
Get a UserAbsence
GET
/v1/user-absences/{userAbsenceId}
Get a UserAbsence by ID
Authorizations
apiKey
Type
HTTP (bearer)
Parameters
Path Parameters
userAbsenceId*
Type
Requiredinteger
Format
"int32"Responses
UserAbsence found
application/json
{
"id": 0,
"typeId": 0,
"startsAt": "string",
"endsAt": "string",
"userId": 0,
"requestedAt": "string",
"approvedAt": "string",
"noteForApproval": "string",
"needApprovalById": 0,
"declinedAt": "string",
"declinedNote": "string",
"declinedById": 0,
"compensationApprovedAt": "string",
"compensationDeclinedAt": "string",
"compensatedById": 0,
"workDays": 0,
"status": "string",
"externalId": "string",
"createdAt": "string",
"updatedAt": "string"
}
Delete a UserAbsence
Update a UserAbsence
PATCH
/v1/user-absences/{userAbsenceId}
Update a UserAbsence by ID
Authorizations
apiKey
Type
HTTP (bearer)
Parameters
Path Parameters
userAbsenceId*
Type
Requiredinteger
Format
"int32"Request Body
application/json
{
"startsAt": "string",
"endsAt": "string",
"requestedAt": "string",
"approvedAt": "string",
"noteForApproval": "string",
"needApprovalById": 0,
"declinedAt": "string",
"declinedNote": "string",
"declinedById": 0,
"compensationApprovedAt": "string",
"compensationDeclinedAt": "string",
"compensatedById": 0,
"externalId": "string"
}
Responses
UserAbsence found
application/json
{
"id": 0,
"typeId": 0,
"startsAt": "string",
"endsAt": "string",
"userId": 0,
"requestedAt": "string",
"approvedAt": "string",
"noteForApproval": "string",
"needApprovalById": 0,
"declinedAt": "string",
"declinedNote": "string",
"declinedById": 0,
"compensationApprovedAt": "string",
"compensationDeclinedAt": "string",
"compensatedById": 0,
"workDays": 0,
"status": "string",
"externalId": "string",
"createdAt": "string",
"updatedAt": "string"
}