PostEmployeeLeave
PostEmployeeLeave
Description:
Inserts submitted employee leave information if requester is authorized to do so.
Request:
https://dev02-api-gateway.moorepay.co.uk/timeandattendance/v1/TimeAndAttendance/PostEmployeeLeave
Request headers:
Name |
Required |
Type |
Description |
Authorization |
Yes |
string |
access token |
Request body:
[{
"payrollCompanyCode": "string",
"idNumber": "string",
"hrEmployeeId": "string",
"dateFrom": "string",
"dateTo": "string",
"returnToWork": "string",
"leaveType": "string",
"otherLeaveReason": "string",
"hours": [{
"date":"string",
"hours": 0,
"expectedHours": 0
}],
"status": 0.0,
"overrideWorkDays": 0.0,
"overridePublicHolidays": 0.0,
"doctorsCertificate": "string",
"comments": "string",
"reviewerEmployeeId": "string",
"halfDayAM_HalfLastDay": true,
"halfDayPM_HalfFirstDay": true
}]
Response example:
Response: 200 OK
"string"
Response: 400 Bad Request
Bad Request
Response: 401 Unauthorized
Unauthorized
Response: 404 Not Found
Not Found
Response: 405 Method Not Allowed
Method Not Allowed
Response: 500 Internal Server Error
Internal Server Error
Created with the Personal Edition of HelpNDoc: How to Protect Your PDFs with Encryption and Passwords