POST api/WorkingHours/SaveWorkingHours

Request Information

URI Parameters

None.

Body Parameters

PersistWeekModel
NameDescriptionTypeAdditional information
ActionMakerKey

string

None.

ActionSource

ActionSource

None.

BranchKey

string

None.

WeekDetails

Collection of DoctorWorkingHoursModel

None.

AllowEditingWorkingHours

boolean

None.

ScheduleKey

string

None.

AllowMultipleShifts

boolean

None.

AllowDoctorMultipleShifts

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionMakerKey": "sample string 1",
  "ActionSource": 1,
  "BranchKey": "sample string 2",
  "WeekDetails": [
    {
      "DayOfWeek": "sample string 1",
      "DayShifts": [
        {
          "StartTime": "sample string 1",
          "EndTime": "sample string 2",
          "SlotDuration": 3,
          "ScheduleId": 1,
          "SlotsPerShift": 1,
          "ShiftType": 1,
          "WorkingHourKey": "sample string 4",
          "AssignedPhysicalRoomKey": "sample string 7",
          "PhysicalRoomAvailabilities": [
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            },
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            }
          ],
          "DoctorHasVacation": true,
          "AccountKey": "sample string 9",
          "RoomKey": "sample string 10",
          "SpecialtyGroupId": 11,
          "BranchKey": "sample string 12"
        },
        {
          "StartTime": "sample string 1",
          "EndTime": "sample string 2",
          "SlotDuration": 3,
          "ScheduleId": 1,
          "SlotsPerShift": 1,
          "ShiftType": 1,
          "WorkingHourKey": "sample string 4",
          "AssignedPhysicalRoomKey": "sample string 7",
          "PhysicalRoomAvailabilities": [
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            },
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            }
          ],
          "DoctorHasVacation": true,
          "AccountKey": "sample string 9",
          "RoomKey": "sample string 10",
          "SpecialtyGroupId": 11,
          "BranchKey": "sample string 12"
        }
      ],
      "DayOfWeekInt": 2
    },
    {
      "DayOfWeek": "sample string 1",
      "DayShifts": [
        {
          "StartTime": "sample string 1",
          "EndTime": "sample string 2",
          "SlotDuration": 3,
          "ScheduleId": 1,
          "SlotsPerShift": 1,
          "ShiftType": 1,
          "WorkingHourKey": "sample string 4",
          "AssignedPhysicalRoomKey": "sample string 7",
          "PhysicalRoomAvailabilities": [
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            },
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            }
          ],
          "DoctorHasVacation": true,
          "AccountKey": "sample string 9",
          "RoomKey": "sample string 10",
          "SpecialtyGroupId": 11,
          "BranchKey": "sample string 12"
        },
        {
          "StartTime": "sample string 1",
          "EndTime": "sample string 2",
          "SlotDuration": 3,
          "ScheduleId": 1,
          "SlotsPerShift": 1,
          "ShiftType": 1,
          "WorkingHourKey": "sample string 4",
          "AssignedPhysicalRoomKey": "sample string 7",
          "PhysicalRoomAvailabilities": [
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            },
            {
              "PhysicalRoomKey": "sample string 1",
              "Name": "sample string 2",
              "SpecialtyGroupId": 3,
              "CreatedOn": "2025-12-10T12:37:41.3354134+02:00",
              "CanBeAssignedToShift": true
            }
          ],
          "DoctorHasVacation": true,
          "AccountKey": "sample string 9",
          "RoomKey": "sample string 10",
          "SpecialtyGroupId": 11,
          "BranchKey": "sample string 12"
        }
      ],
      "DayOfWeekInt": 2
    }
  ],
  "AllowEditingWorkingHours": true,
  "ScheduleKey": "sample string 4",
  "AllowMultipleShifts": true,
  "AllowDoctorMultipleShifts": true
}

application/xml, text/xml

Sample:
<PersistWeekModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models.Schedule.WorkingHours">
  <AllowDoctorMultipleShifts>true</AllowDoctorMultipleShifts>
  <AllowEditingWorkingHours>true</AllowEditingWorkingHours>
  <AllowMultipleShifts>true</AllowMultipleShifts>
  <ScheduleKey>sample string 4</ScheduleKey>
  <WeekDetails>
    <DoctorWorkingHoursModel>
      <DayOfWeek>sample string 1</DayOfWeek>
      <DayOfWeekInt>2</DayOfWeekInt>
      <DayShifts>
        <ShiftModel>
          <AccountKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 9</AccountKey>
          <BranchKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 12</BranchKey>
          <RoomKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 10</RoomKey>
          <SpecialtyGroupId xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">11</SpecialtyGroupId>
          <AssignedPhysicalRoomKey>sample string 7</AssignedPhysicalRoomKey>
          <CreatedBy>sample string 6</CreatedBy>
          <CreatedOn>2025-12-10T12:37:41.3354134+02:00</CreatedOn>
          <DoctorHasVacation>true</DoctorHasVacation>
          <DoctorSchduleKey>sample string 5</DoctorSchduleKey>
          <EndTime>sample string 2</EndTime>
          <PhysicalRoomAvailabilities xmlns:d6p1="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models.PysicalRoomShiftModels">
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
          </PhysicalRoomAvailabilities>
          <ScheduleId>1</ScheduleId>
          <ShiftType>OnSchedule</ShiftType>
          <SlotDuration>3</SlotDuration>
          <SlotsPerShift>1</SlotsPerShift>
          <StartTime>sample string 1</StartTime>
          <WorkingHourKey>sample string 4</WorkingHourKey>
        </ShiftModel>
        <ShiftModel>
          <AccountKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 9</AccountKey>
          <BranchKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 12</BranchKey>
          <RoomKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 10</RoomKey>
          <SpecialtyGroupId xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">11</SpecialtyGroupId>
          <AssignedPhysicalRoomKey>sample string 7</AssignedPhysicalRoomKey>
          <CreatedBy>sample string 6</CreatedBy>
          <CreatedOn>2025-12-10T12:37:41.3354134+02:00</CreatedOn>
          <DoctorHasVacation>true</DoctorHasVacation>
          <DoctorSchduleKey>sample string 5</DoctorSchduleKey>
          <EndTime>sample string 2</EndTime>
          <PhysicalRoomAvailabilities xmlns:d6p1="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models.PysicalRoomShiftModels">
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
          </PhysicalRoomAvailabilities>
          <ScheduleId>1</ScheduleId>
          <ShiftType>OnSchedule</ShiftType>
          <SlotDuration>3</SlotDuration>
          <SlotsPerShift>1</SlotsPerShift>
          <StartTime>sample string 1</StartTime>
          <WorkingHourKey>sample string 4</WorkingHourKey>
        </ShiftModel>
      </DayShifts>
    </DoctorWorkingHoursModel>
    <DoctorWorkingHoursModel>
      <DayOfWeek>sample string 1</DayOfWeek>
      <DayOfWeekInt>2</DayOfWeekInt>
      <DayShifts>
        <ShiftModel>
          <AccountKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 9</AccountKey>
          <BranchKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 12</BranchKey>
          <RoomKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 10</RoomKey>
          <SpecialtyGroupId xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">11</SpecialtyGroupId>
          <AssignedPhysicalRoomKey>sample string 7</AssignedPhysicalRoomKey>
          <CreatedBy>sample string 6</CreatedBy>
          <CreatedOn>2025-12-10T12:37:41.3354134+02:00</CreatedOn>
          <DoctorHasVacation>true</DoctorHasVacation>
          <DoctorSchduleKey>sample string 5</DoctorSchduleKey>
          <EndTime>sample string 2</EndTime>
          <PhysicalRoomAvailabilities xmlns:d6p1="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models.PysicalRoomShiftModels">
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
          </PhysicalRoomAvailabilities>
          <ScheduleId>1</ScheduleId>
          <ShiftType>OnSchedule</ShiftType>
          <SlotDuration>3</SlotDuration>
          <SlotsPerShift>1</SlotsPerShift>
          <StartTime>sample string 1</StartTime>
          <WorkingHourKey>sample string 4</WorkingHourKey>
        </ShiftModel>
        <ShiftModel>
          <AccountKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 9</AccountKey>
          <BranchKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 12</BranchKey>
          <RoomKey xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">sample string 10</RoomKey>
          <SpecialtyGroupId xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models">11</SpecialtyGroupId>
          <AssignedPhysicalRoomKey>sample string 7</AssignedPhysicalRoomKey>
          <CreatedBy>sample string 6</CreatedBy>
          <CreatedOn>2025-12-10T12:37:41.3354134+02:00</CreatedOn>
          <DoctorHasVacation>true</DoctorHasVacation>
          <DoctorSchduleKey>sample string 5</DoctorSchduleKey>
          <EndTime>sample string 2</EndTime>
          <PhysicalRoomAvailabilities xmlns:d6p1="http://schemas.datacontract.org/2004/07/Vezeeta.Schedule.Models.PysicalRoomShiftModels">
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
            <d6p1:PhysicalRoomModel>
              <d6p1:CanBeAssignedToShift>true</d6p1:CanBeAssignedToShift>
              <d6p1:CreatedOn>2025-12-10T12:37:41.3354134+02:00</d6p1:CreatedOn>
              <d6p1:Name>sample string 2</d6p1:Name>
              <d6p1:PhysicalRoomKey>sample string 1</d6p1:PhysicalRoomKey>
              <d6p1:SpecialtyGroupId>3</d6p1:SpecialtyGroupId>
            </d6p1:PhysicalRoomModel>
          </PhysicalRoomAvailabilities>
          <ScheduleId>1</ScheduleId>
          <ShiftType>OnSchedule</ShiftType>
          <SlotDuration>3</SlotDuration>
          <SlotsPerShift>1</SlotsPerShift>
          <StartTime>sample string 1</StartTime>
          <WorkingHourKey>sample string 4</WorkingHourKey>
        </ShiftModel>
      </DayShifts>
    </DoctorWorkingHoursModel>
  </WeekDetails>
  <ActionMakerKey>sample string 1</ActionMakerKey>
  <ActionSource>OldCallCenter</ActionSource>
  <BranchKey>sample string 2</BranchKey>
</PersistWeekModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.