API ReferenceHr leave request
Cancel a leave request
Cancels a leave request
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/hr/leave-requests/string/cancel"{
"approvedAt": "2019-08-24T14:15:22Z",
"approvedBy": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"employee": {
"avatar": "string",
"department": "string",
"email": "string",
"fullName": "string",
"id": "string",
"jobTitle": "string"
},
"employeeId": "string",
"endDate": "2019-08-24",
"endHalf": "FULL",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"leaveType": "VACATION",
"reason": "string",
"rejectionReason": "string",
"startDate": "2019-08-24",
"startHalf": "FULL",
"status": "PENDING",
"tenantId": "string",
"totalDays": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}