POST api/user/endemployment

End Employmment (Sets leave date for an employee)

Request Information

URI Parameters

None.

Body Parameters

Unit4EndEmployment
NameDescriptionTypeAdditional information
SamAccountName

string

Required

CompanyId

string

Required

LeaveDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "SamAccountName": "sample string 1",
  "CompanyId": "sample string 2",
  "LeaveDate": "2024-11-25T17:34:34.0945888+00:00"
}

application/xml, text/xml

Sample:
<Unit4EndEmployment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Unit4Helper.Models">
  <CompanyId>sample string 2</CompanyId>
  <LeaveDate>2024-11-25T17:34:34.0945888+00:00</LeaveDate>
  <SamAccountName>sample string 1</SamAccountName>
</Unit4EndEmployment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.