PUT api/Leaver/{employeeNo}

Add Employee Leaver

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeNo

Employee Number

string

Required

Body Parameters

In request Body: Employee Leaver Details

LeaverDetail
NameDescriptionTypeAdditional information
LeavingDate

date

Required

PaidUpToDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "LeavingDate": "2024-12-23T07:01:16.1290502+00:00",
  "PaidUpToDate": "2024-12-23T07:01:16.1290502+00: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>2024-12-23T07:01:16.1290502+00:00</LeavingDate>
  <PaidUpToDate>2024-12-23T07:01:16.1290502+00:00</PaidUpToDate>
</LeaverDetail>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result

ResultWithMessage
NameDescriptionTypeAdditional 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>