GET api/UserShift/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Shift| Name | Description | Type | Additional 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:05:26.1728201+00:00",
"timeTo": "2026-04-03T11:05:26.1728201+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:05:26.1728201+00:00</TimeFrom> <TimeTo>2026-04-03T11:05:26.1728201+00:00</TimeTo> <Title>sample string 4</Title> <UserId>sample string 2</UserId> </Shift>