POST api/timeSchedule/batch

Insert or update a batch of records into the Schedules table.

Request Information

URI Parameters

None.

Body Parameters

Collection of timeScheduleDb
NameDescriptionTypeAdditional information
ScheduleID

integer

None.

EmployeeID

integer

Required

ScheduleDate

date

Required

ScheduleTypeID

integer

Required

StartTime

time interval

Required

StopTime

time interval

None.

ScheduleHours

decimal number

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "results": null,
    "ScheduleID": 1,
    "EmployeeID": 2,
    "ScheduleDate": "2025-12-06T23:37:51.6584762+00:00",
    "ScheduleTypeID": 4,
    "StartTime": "00:00:00.1234567",
    "StopTime": "00:00:00.1234567",
    "ScheduleHours": 1.0,
    "CreatedBy": 6,
    "CreatedDate": "2025-12-06T23:37:51.6584762+00:00",
    "UpdatedBy": 8,
    "UpdatedDate": "2025-12-06T23:37:51.6584762+00:00"
  },
  {
    "results": null,
    "ScheduleID": 1,
    "EmployeeID": 2,
    "ScheduleDate": "2025-12-06T23:37:51.6584762+00:00",
    "ScheduleTypeID": 4,
    "StartTime": "00:00:00.1234567",
    "StopTime": "00:00:00.1234567",
    "ScheduleHours": 1.0,
    "CreatedBy": 6,
    "CreatedDate": "2025-12-06T23:37:51.6584762+00:00",
    "UpdatedBy": 8,
    "UpdatedDate": "2025-12-06T23:37:51.6584762+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOftimeScheduleDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <timeScheduleDb>
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
    <CreatedBy>6</CreatedBy>
    <CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </CreatedDate>
    <EmployeeID>2</EmployeeID>
    <ScheduleDate>2025-12-06T23:37:51.6584762+00:00</ScheduleDate>
    <ScheduleHours>1</ScheduleHours>
    <ScheduleID>1</ScheduleID>
    <ScheduleTypeID>4</ScheduleTypeID>
    <StartTime>PT0.1234567S</StartTime>
    <StopTime>PT0.1234567S</StopTime>
    <UpdatedBy>8</UpdatedBy>
    <UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </UpdatedDate>
  </timeScheduleDb>
  <timeScheduleDb>
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
    <CreatedBy>6</CreatedBy>
    <CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </CreatedDate>
    <EmployeeID>2</EmployeeID>
    <ScheduleDate>2025-12-06T23:37:51.6584762+00:00</ScheduleDate>
    <ScheduleHours>1</ScheduleHours>
    <ScheduleID>1</ScheduleID>
    <ScheduleTypeID>4</ScheduleTypeID>
    <StartTime>PT0.1234567S</StartTime>
    <StopTime>PT0.1234567S</StopTime>
    <UpdatedBy>8</UpdatedBy>
    <UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </UpdatedDate>
  </timeScheduleDb>
</ArrayOftimeScheduleDb>

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 'List`1'.

Response Information

Resource Description

Collection of timeScheduleDb
NameDescriptionTypeAdditional information
ScheduleID

integer

None.

EmployeeID

integer

Required

ScheduleDate

date

Required

ScheduleTypeID

integer

Required

StartTime

time interval

Required

StopTime

time interval

None.

ScheduleHours

decimal number

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "results": null,
    "ScheduleID": 1,
    "EmployeeID": 2,
    "ScheduleDate": "2025-12-06T23:37:51.6584762+00:00",
    "ScheduleTypeID": 4,
    "StartTime": "00:00:00.1234567",
    "StopTime": "00:00:00.1234567",
    "ScheduleHours": 1.0,
    "CreatedBy": 6,
    "CreatedDate": "2025-12-06T23:37:51.6584762+00:00",
    "UpdatedBy": 8,
    "UpdatedDate": "2025-12-06T23:37:51.6584762+00:00"
  },
  {
    "results": null,
    "ScheduleID": 1,
    "EmployeeID": 2,
    "ScheduleDate": "2025-12-06T23:37:51.6584762+00:00",
    "ScheduleTypeID": 4,
    "StartTime": "00:00:00.1234567",
    "StopTime": "00:00:00.1234567",
    "ScheduleHours": 1.0,
    "CreatedBy": 6,
    "CreatedDate": "2025-12-06T23:37:51.6584762+00:00",
    "UpdatedBy": 8,
    "UpdatedDate": "2025-12-06T23:37:51.6584762+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOftimeScheduleDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <timeScheduleDb>
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
    <CreatedBy>6</CreatedBy>
    <CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </CreatedDate>
    <EmployeeID>2</EmployeeID>
    <ScheduleDate>2025-12-06T23:37:51.6584762+00:00</ScheduleDate>
    <ScheduleHours>1</ScheduleHours>
    <ScheduleID>1</ScheduleID>
    <ScheduleTypeID>4</ScheduleTypeID>
    <StartTime>PT0.1234567S</StartTime>
    <StopTime>PT0.1234567S</StopTime>
    <UpdatedBy>8</UpdatedBy>
    <UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </UpdatedDate>
  </timeScheduleDb>
  <timeScheduleDb>
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
    <CreatedBy>6</CreatedBy>
    <CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </CreatedDate>
    <EmployeeID>2</EmployeeID>
    <ScheduleDate>2025-12-06T23:37:51.6584762+00:00</ScheduleDate>
    <ScheduleHours>1</ScheduleHours>
    <ScheduleID>1</ScheduleID>
    <ScheduleTypeID>4</ScheduleTypeID>
    <StartTime>PT0.1234567S</StartTime>
    <StopTime>PT0.1234567S</StopTime>
    <UpdatedBy>8</UpdatedBy>
    <UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:37:51.6584762Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </UpdatedDate>
  </timeScheduleDb>
</ArrayOftimeScheduleDb>