POST api/ChangeRequest

Request Information

URI Parameters

None.

Body Parameters

ChangeRequestNewVm
NameDescriptionTypeAdditional information
StartDate

date

None.

EndDate

date

None.

TypeId

integer

None.

SwitchingShiftsEmployeeId

integer

None.

OtherSwitchingShiftID

integer

None.

OtherEmployeeId

integer

None.

RequestTypeNo

integer

None.

Reason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "startDate": "2026-05-06T03:46:11.6964941+02:00",
  "endDate": "2026-05-06T03:46:11.6974952+02:00",
  "typeId": 1,
  "switchingShiftsEmployeeId": 1,
  "otherSwitchingShiftID": 1,
  "otherEmployeeId": 1,
  "requestTypeNo": 1,
  "reason": "sample string 3"
}

text/html

Sample:
{"startDate":"2026-05-06T03:46:11.6964941+02:00","endDate":"2026-05-06T03:46:11.6974952+02:00","typeId":1,"switchingShiftsEmployeeId":1,"otherSwitchingShiftID":1,"otherEmployeeId":1,"requestTypeNo":1,"reason":"sample string 3"}

application/xml, text/xml

Sample:
<ChangeRequestNewVm 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:11.6974952+02:00</EndDate>
  <OtherEmployeeId>1</OtherEmployeeId>
  <OtherSwitchingShiftID>1</OtherSwitchingShiftID>
  <Reason>sample string 3</Reason>
  <RequestTypeNo>1</RequestTypeNo>
  <StartDate>2026-05-06T03:46:11.6964941+02:00</StartDate>
  <SwitchingShiftsEmployeeId>1</SwitchingShiftsEmployeeId>
  <TypeId>1</TypeId>
</ChangeRequestNewVm>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.