GET PlanCare2Api/Calendars/{calendarId}/Shifts
Retrieve all shifts for a Calendar
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| calendarId |
The internal Id of the calendar |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A list of shifts.
Collection of Shift| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The internal id of the Shift |
integer |
None |
| Name |
The name of the Shift |
string |
None |
| TimeFrom |
The starttime of the shift |
date |
None |
| TimeUntil |
The endtime of the shift |
date |
None |
Response Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"Id": 1,
"Name": "sample string 2",
"TimeFrom": "2026-05-26T21:07:02.3007455+02:00",
"TimeUntil": "2026-05-26T21:07:02.3007455+02:00"
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfShift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface">
<Shift>
<Id>1</Id>
<Name>sample string 2</Name>
<TimeFrom>2026-05-26T21:07:02.3007455+02:00</TimeFrom>
<TimeUntil>2026-05-26T21:07:02.3007455+02:00</TimeUntil>
</Shift>
<Shift>
<Id>1</Id>
<Name>sample string 2</Name>
<TimeFrom>2026-05-26T21:07:02.3007455+02:00</TimeFrom>
<TimeUntil>2026-05-26T21:07:02.3007455+02:00</TimeUntil>
</Shift>
</ArrayOfShift>