PUT api/ChangeRequest

Request Information

URI Parameters

None.

Body Parameters

ChangeRequestEditVm
NameDescriptionTypeAdditional information
Id

integer

None.

StartDate

date

None.

EndDate

date

None.

TypeId

integer

None.

SwitchingShiftsEmployeeId

integer

None.

ShiftHours

decimal number

None.

Reason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "startDate": "2026-05-06T03:46:10.5001586+02:00",
  "endDate": "2026-05-06T03:46:10.5001586+02:00",
  "typeId": 4,
  "switchingShiftsEmployeeId": 5,
  "shiftHours": 6.0,
  "reason": "sample string 7"
}

text/html

Sample:
{"id":1,"startDate":"2026-05-06T03:46:10.5001586+02:00","endDate":"2026-05-06T03:46:10.5001586+02:00","typeId":4,"switchingShiftsEmployeeId":5,"shiftHours":6.0,"reason":"sample string 7"}

application/xml, text/xml

Sample:
<ChangeRequestEditVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels.ViewModels.HR">
  <EndDate>2026-05-06T03:46:10.5001586+02:00</EndDate>
  <Id>1</Id>
  <Reason>sample string 7</Reason>
  <ShiftHours>6</ShiftHours>
  <StartDate>2026-05-06T03:46:10.5001586+02:00</StartDate>
  <SwitchingShiftsEmployeeId>5</SwitchingShiftsEmployeeId>
  <TypeId>4</TypeId>
</ChangeRequestEditVm>

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 'ChangeRequestEditVm'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.