POST Api/Schedule/AddNewSchedule

Request Information

URI Parameters

None.

Body Parameters

ScheduleAddVm
NameDescriptionTypeAdditional information
Date

string

None.

StartTime

string

None.

EndTime

string

None.

CreatedBy

integer

None.

CreatedOn

date

None.

LastModifiedBy

integer

None.

LastModifiedOn

date

None.

IsDeleted

boolean

None.

CodeId

integer

None.

TimeZoneId

integer

None.

ZoneId

integer

None.

ClinicId

integer

None.

RegionId

integer

None.

NumberNeeded

integer

None.

EmployeeId

integer

None.

PositionCategoryId

integer

None.

PayPeriodId

integer

None.

ScheduleStatusId

integer

None.

EmployeeNotInZoneConfirmed

boolean

None.

EmployeeOvertimeConfirmed

boolean

None.

MoreThanOneEmployeeConfirmed

boolean

None.

EmployeeSameDayInOtherClinicConfirmed

boolean

None.

Shift

string

None.

Request Formats

application/json, text/json

Sample:
{
  "date": "sample string 1",
  "startTime": "sample string 2",
  "endTime": "sample string 3",
  "createdBy": 4,
  "createdOn": "2026-05-06T03:47:19.5653434+02:00",
  "lastModifiedBy": 1,
  "lastModifiedOn": "2026-05-06T03:47:19.5653434+02:00",
  "isDeleted": true,
  "codeId": 7,
  "timeZoneId": 8,
  "zoneId": 9,
  "clinicId": 10,
  "regionId": 11,
  "numberNeeded": 12,
  "employeeId": 13,
  "positionCategoryId": 14,
  "payPeriodId": 1,
  "scheduleStatusId": 1,
  "employeeNotInZoneConfirmed": true,
  "employeeOvertimeConfirmed": true,
  "moreThanOneEmployeeConfirmed": true,
  "employeeSameDayInOtherClinicConfirmed": true,
  "shift": "sample string 19"
}

text/html

Sample:
{"date":"sample string 1","startTime":"sample string 2","endTime":"sample string 3","createdBy":4,"createdOn":"2026-05-06T03:47:19.5653434+02:00","lastModifiedBy":1,"lastModifiedOn":"2026-05-06T03:47:19.5653434+02:00","isDeleted":true,"codeId":7,"timeZoneId":8,"zoneId":9,"clinicId":10,"regionId":11,"numberNeeded":12,"employeeId":13,"positionCategoryId":14,"payPeriodId":1,"scheduleStatusId":1,"employeeNotInZoneConfirmed":true,"employeeOvertimeConfirmed":true,"moreThanOneEmployeeConfirmed":true,"employeeSameDayInOtherClinicConfirmed":true,"shift":"sample string 19"}

application/xml, text/xml

Sample:
<ScheduleAddVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels.ViewModels.HR">
  <ClinicId>10</ClinicId>
  <CodeId>7</CodeId>
  <CreatedBy>4</CreatedBy>
  <CreatedOn>2026-05-06T03:47:19.5653434+02:00</CreatedOn>
  <Date>sample string 1</Date>
  <EmployeeId>13</EmployeeId>
  <EmployeeNotInZoneConfirmed>true</EmployeeNotInZoneConfirmed>
  <EmployeeOvertimeConfirmed>true</EmployeeOvertimeConfirmed>
  <EmployeeSameDayInOtherClinicConfirmed>true</EmployeeSameDayInOtherClinicConfirmed>
  <EndTime>sample string 3</EndTime>
  <IsDeleted>true</IsDeleted>
  <LastModifiedBy>1</LastModifiedBy>
  <LastModifiedOn>2026-05-06T03:47:19.5653434+02:00</LastModifiedOn>
  <MoreThanOneEmployeeConfirmed>true</MoreThanOneEmployeeConfirmed>
  <NumberNeeded>12</NumberNeeded>
  <PayPeriodId>1</PayPeriodId>
  <PositionCategoryId>14</PositionCategoryId>
  <RegionId>11</RegionId>
  <ScheduleStatusId>1</ScheduleStatusId>
  <Shift>sample string 19</Shift>
  <StartTime>sample string 2</StartTime>
  <TimeZoneId>8</TimeZoneId>
  <ZoneId>9</ZoneId>
</ScheduleAddVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ScheduleAddVm'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.