curl --request GET \
--url https://{host}/api/v3/leaves/{id} \
--header 'Authorization: <authorization>'{
"data": {
"id": "<string>",
"date": "2023-12-25",
"isAm": true,
"leaveAccountId": 123,
"leavePeriodId": 123,
"leaveAccount": {
"id": 123,
"name": "<string>"
},
"leavePeriod": {
"id": 123,
"ownerId": 123,
"isConfirmed": true,
"confirmationDate": "<unknown>",
"attachmentId": "<unknown>",
"leaves": [
{}
],
"logs": [
{
"id": 123,
"date": "2023-11-07T05:31:56Z",
"comment": "<string>",
"status": 0
}
]
},
"value": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"isActive": true,
"cancellationDate": "<unknown>",
"cancellationUserId": null,
"comment": "<string>"
}
}Retrieve a single Leave by its unique identifier.
curl --request GET \
--url https://{host}/api/v3/leaves/{id} \
--header 'Authorization: <authorization>'{
"data": {
"id": "<string>",
"date": "2023-12-25",
"isAm": true,
"leaveAccountId": 123,
"leavePeriodId": 123,
"leaveAccount": {
"id": 123,
"name": "<string>"
},
"leavePeriod": {
"id": 123,
"ownerId": 123,
"isConfirmed": true,
"confirmationDate": "<unknown>",
"attachmentId": "<unknown>",
"leaves": [
{}
],
"logs": [
{
"id": 123,
"date": "2023-11-07T05:31:56Z",
"comment": "<string>",
"status": 0
}
]
},
"value": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"isActive": true,
"cancellationDate": "<unknown>",
"cancellationUserId": null,
"comment": "<string>"
}
}API key. Value must be formatted like so: lucca application={api_key}.
Identifier of the leave.
OK
Show child attributes
Unique identifier for the Leave
Date of the leave in ISO format yyyy-mm-dd
Has the value true for morning or the value false for afternoon
Unique identifier for the attached LeaveAccount
Unique identifier for the attached LeavePeriod
Show child attributes
Unique identifier for the LeavePeriod
Unique identifier for the user
Has the value true for approved LeavePeriod or the value false for LeavePeriod pending approval
Time at which the LeavePeriod was approved
Unique identifier for the attached document
Leave duration in hours
Time at which the object was created
Has the value true when the Leave exists (for pending or confirmed LeavePeriods), or the value false when it has been deleted (for canceled or denied LeaveRequests).
Time at which the request was canceled
Unique identifier for the user who canceled the request
Comments
Was this page helpful?