POST api/ShiftDayTime/AddShiftDayTime

Request Information

URI Parameters

None.

Body Parameters

AddEditShiftDayTimeRequest
NameDescriptionTypeAdditional information
ShiftId

string

None.

Title

string

Required

Notes

string

Required

AddToCalendar

boolean

None.

StartDateTime

date

Required

Request Formats

application/json, text/json

Sample:
{
  "ShiftId": "sample string 1",
  "Title": "sample string 2",
  "Notes": "sample string 3",
  "AddToCalendar": true,
  "StartDateTime": "2025-12-17T10:05:01.711784+00:00"
}

multipart/form-data

Sample:
{"ShiftId":"sample string 1","Title":"sample string 2","Notes":"sample string 3","AddToCalendar":true,"StartDateTime":"2025-12-17T10:05:01.711784+00:00"}

application/xml, text/xml

Sample:
<AddEditShiftDayTimeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ScrupUpBusinessModel.DTO">
  <AddToCalendar>true</AddToCalendar>
  <Notes>sample string 3</Notes>
  <ShiftId>sample string 1</ShiftId>
  <StartDateTime>2025-12-17T10:05:01.711784+00:00</StartDateTime>
  <Title>sample string 2</Title>
</AddEditShiftDayTimeRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, multipart/form-data, application/xml, text/xml

Sample:

Sample not available.