POST api/UserShift

Request Information

URI Parameters

None.

Body Parameters

Shift
NameDescriptionTypeAdditional information
ShiftId

integer

None.

UserId

string

None.

ShortTitle

string

None.

Title

string

None.

TimeFrom

date

None.

TimeTo

date

None.

BackgroundColor

string

None.

FontColor

string

None.

ReferencedWorkScheduleDays

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "shiftId": 1,
  "userId": "sample string 2",
  "shortTitle": "sample string 3",
  "title": "sample string 4",
  "timeFrom": "2026-04-03T11:03:42.3135981+00:00",
  "timeTo": "2026-04-03T11:03:42.3135981+00:00",
  "backgroundColor": "sample string 5",
  "fontColor": "sample string 6",
  "referencedWorkScheduleDays": 1
}

application/xml, text/xml

Sample:
<Shift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyWorkSchedule.Common.Models">
  <BackgroundColor>sample string 5</BackgroundColor>
  <FontColor>sample string 6</FontColor>
  <ReferencedWorkScheduleDays>1</ReferencedWorkScheduleDays>
  <ShiftId>1</ShiftId>
  <ShortTitle>sample string 3</ShortTitle>
  <TimeFrom>2026-04-03T11:03:42.3135981+00:00</TimeFrom>
  <TimeTo>2026-04-03T11:03:42.3135981+00:00</TimeTo>
  <Title>sample string 4</Title>
  <UserId>sample string 2</UserId>
</Shift>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Shift
NameDescriptionTypeAdditional information
ShiftId

integer

None.

UserId

string

None.

ShortTitle

string

None.

Title

string

None.

TimeFrom

date

None.

TimeTo

date

None.

BackgroundColor

string

None.

FontColor

string

None.

ReferencedWorkScheduleDays

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "shiftId": 1,
  "userId": "sample string 2",
  "shortTitle": "sample string 3",
  "title": "sample string 4",
  "timeFrom": "2026-04-03T11:03:42.3135981+00:00",
  "timeTo": "2026-04-03T11:03:42.3135981+00:00",
  "backgroundColor": "sample string 5",
  "fontColor": "sample string 6",
  "referencedWorkScheduleDays": 1
}

application/xml, text/xml

Sample:
<Shift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyWorkSchedule.Common.Models">
  <BackgroundColor>sample string 5</BackgroundColor>
  <FontColor>sample string 6</FontColor>
  <ReferencedWorkScheduleDays>1</ReferencedWorkScheduleDays>
  <ShiftId>1</ShiftId>
  <ShortTitle>sample string 3</ShortTitle>
  <TimeFrom>2026-04-03T11:03:42.3135981+00:00</TimeFrom>
  <TimeTo>2026-04-03T11:03:42.3135981+00:00</TimeTo>
  <Title>sample string 4</Title>
  <UserId>sample string 2</UserId>
</Shift>