PUT api/Leaver/{employeeNo}
Add Employee Leaver
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| employeeNo |
Employee Number |
string |
Required |
Body Parameters
In request Body: Employee Leaver Details
LeaverDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| LeavingDate | date |
Required |
|
| PaidUpToDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"LeavingDate": "2025-10-26T01:56:00.0150732+01:00",
"PaidUpToDate": "2025-10-26T01:56:00.0150732+01:00"
}
application/xml, text/xml
Sample:
<LeaverDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models"> <LeavingDate>2025-10-26T01:56:00.0150732+01:00</LeavingDate> <PaidUpToDate>2025-10-26T01:56:00.0150732+01:00</PaidUpToDate> </LeaverDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result
ResultWithMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| result |
'OK', 'Error' |
string |
None. |
| message |
Returns if result is Error |
string |
None. |
| returnValue | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": "OK"
}
{
"result": "Error",
"message": "Unable to save: the..."
}
application/xml, text/xml
Sample:
<ResultWithMessage>
<result>OK</result>
</ResultWithMessage>
<ResultWithMessage>
<result>Error</result>
<message>Unable to save: the...</message>
</ResultWithMessage>