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>"
}
}Was this page helpful?