PUT Api/Employees/EmployeeAbsence

Request Information

URI Parameters

None.

Body Parameters

EmployeeAbsenceVm
NameDescriptionTypeAdditional information
EmployeeAbsenceId

integer

None.

EmployeeId

integer

None.

AbsenceReasonId

integer

None.

EmployeeName

string

None.

AbsenceReason

string

None.

StartDate

date

None.

EndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "employeeAbsenceId": 1,
  "employeeId": 2,
  "absenceReasonId": 3,
  "employeeName": "sample string 4",
  "absenceReason": "sample string 5",
  "startDate": "2026-05-06T03:48:17.9373094+02:00",
  "endDate": "2026-05-06T03:48:17.9373094+02:00"
}

text/html

Sample:
{"employeeAbsenceId":1,"employeeId":2,"absenceReasonId":3,"employeeName":"sample string 4","absenceReason":"sample string 5","startDate":"2026-05-06T03:48:17.9373094+02:00","endDate":"2026-05-06T03:48:17.9373094+02:00"}

application/xml, text/xml

Sample:
<EmployeeAbsenceVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels.ViewModels.HR">
  <AbsenceReason>sample string 5</AbsenceReason>
  <AbsenceReasonId>3</AbsenceReasonId>
  <EmployeeAbsenceId>1</EmployeeAbsenceId>
  <EmployeeId>2</EmployeeId>
  <EmployeeName>sample string 4</EmployeeName>
  <EndDate>2026-05-06T03:48:17.9373094+02:00</EndDate>
  <StartDate>2026-05-06T03:48:17.9373094+02:00</StartDate>
</EmployeeAbsenceVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmployeeAbsenceVm'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.