GET Api/Utility/GetShiftPlans/{masterUnitId}/{orgUnitId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
masterUnitId

integer

Required

orgUnitId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ShiftPlanList
NameDescriptionTypeAdditional information
ShiftPlans

Collection of ShiftPlanDto

None.

ShiftPlanId

integer

None.

Sequence

integer

None.

StartDate

date

None.

WorkPositionIds

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
{
  "shiftPlans": [
    {
      "shiftPlanId": 1,
      "organizationalUnitId": 2,
      "title": "sample string 3",
      "weeks": [
        {
          "weekPlanId": 1,
          "name": "sample string 2",
          "sequence": 3,
          "days": [
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            },
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            }
          ]
        },
        {
          "weekPlanId": 1,
          "name": "sample string 2",
          "sequence": 3,
          "days": [
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            },
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            }
          ]
        }
      ]
    },
    {
      "shiftPlanId": 1,
      "organizationalUnitId": 2,
      "title": "sample string 3",
      "weeks": [
        {
          "weekPlanId": 1,
          "name": "sample string 2",
          "sequence": 3,
          "days": [
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            },
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            }
          ]
        },
        {
          "weekPlanId": 1,
          "name": "sample string 2",
          "sequence": 3,
          "days": [
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            },
            {
              "dayPlanId": 1,
              "weekPlanId": 2,
              "weekDay": 3,
              "hour": 1,
              "minute": 1,
              "duration": 1,
              "breakTime": 1,
              "color": "sample string 4"
            }
          ]
        }
      ]
    }
  ],
  "shiftPlanId": 1,
  "sequence": 1,
  "startDate": "2024-05-18T04:55:34.0705968+00:00",
  "workPositionIds": [
    1,
    2
  ]
}

multipart/form-data

Sample:
{"shiftPlans":[{"shiftPlanId":1,"organizationalUnitId":2,"title":"sample string 3","weeks":[{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]},{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]}]},{"shiftPlanId":1,"organizationalUnitId":2,"title":"sample string 3","weeks":[{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]},{"weekPlanId":1,"name":"sample string 2","sequence":3,"days":[{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"},{"dayPlanId":1,"weekPlanId":2,"weekDay":3,"hour":1,"minute":1,"duration":1,"breakTime":1,"color":"sample string 4"}]}]}],"shiftPlanId":1,"sequence":1,"startDate":"2024-05-18T04:55:34.0705968+00:00","workPositionIds":[1,2]}

application/xml, text/xml

Sample:
<ShiftPlanList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ShiftPlans>
    <ShiftPlanDto>
      <ShiftPlanId>1</ShiftPlanId>
      <OrganizationalUnitId>2</OrganizationalUnitId>
      <Title>sample string 3</Title>
      <Weeks>
        <WeekPlanDto>
          <WeekPlanId>1</WeekPlanId>
          <Name>sample string 2</Name>
          <Sequence>3</Sequence>
          <Days>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
          </Days>
        </WeekPlanDto>
        <WeekPlanDto>
          <WeekPlanId>1</WeekPlanId>
          <Name>sample string 2</Name>
          <Sequence>3</Sequence>
          <Days>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
          </Days>
        </WeekPlanDto>
      </Weeks>
    </ShiftPlanDto>
    <ShiftPlanDto>
      <ShiftPlanId>1</ShiftPlanId>
      <OrganizationalUnitId>2</OrganizationalUnitId>
      <Title>sample string 3</Title>
      <Weeks>
        <WeekPlanDto>
          <WeekPlanId>1</WeekPlanId>
          <Name>sample string 2</Name>
          <Sequence>3</Sequence>
          <Days>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
          </Days>
        </WeekPlanDto>
        <WeekPlanDto>
          <WeekPlanId>1</WeekPlanId>
          <Name>sample string 2</Name>
          <Sequence>3</Sequence>
          <Days>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
            <DayPlanDto>
              <DayPlanId>1</DayPlanId>
              <WeekPlanId>2</WeekPlanId>
              <WeekDay>3</WeekDay>
              <Hour>1</Hour>
              <Minute>1</Minute>
              <Duration>1</Duration>
              <BreakTime>1</BreakTime>
              <Color>sample string 4</Color>
            </DayPlanDto>
          </Days>
        </WeekPlanDto>
      </Weeks>
    </ShiftPlanDto>
  </ShiftPlans>
  <ShiftPlanId>1</ShiftPlanId>
  <Sequence>1</Sequence>
  <StartDate />
  <WorkPositionIds>
    <int>1</int>
    <int>2</int>
  </WorkPositionIds>
</ShiftPlanList>