PUT Api/ShiftPlans/{id}

Edytuje obiekt ShiftPlan

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

identyfikator modyfikowanego obiektu

integer

Required

Body Parameters

obiekt wraz ze wszystkimi wartoĊ›ciami

ShiftPlanDto
NameDescriptionTypeAdditional information
ShiftPlanId

integer

Required

OrganizationalUnitId

integer

Required

Title

string

Required

Weeks

Collection of WeekPlanDto

None.

Request Formats

application/json, text/json

Sample:
{
  "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"
        }
      ]
    }
  ]
}

multipart/form-data

Sample:
{"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"}]}]}

application/xml, text/xml

Sample:
<ShiftPlanDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <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>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.