POST api/timeSchedule

Insert a new record into the Schedules table.

Request Information

URI Parameters

None.

Body Parameters

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:42:50.4587457+00:00",
  "ScheduleTypeID": 4,
  "StartTime": "00:00:00.1234567",
  "StopTime": "00:00:00.1234567",
  "ScheduleHours": 1.0,
  "CreatedBy": 6,
  "CreatedDate": "2025-12-06T23:42:50.4587457+00:00",
  "UpdatedBy": 8,
  "UpdatedDate": "2025-12-06T23:42:50.4587457+00:00"
}

application/xml, text/xml

Sample:
<timeScheduleDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="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:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:50.4587457Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <EmployeeID>2</EmployeeID>
  <ScheduleDate>2025-12-06T23:42:50.4587457+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:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:50.4587457Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</timeScheduleDb>

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 'timeScheduleDb'.

Response Information

Resource Description

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:42:50.4587457+00:00",
  "ScheduleTypeID": 4,
  "StartTime": "00:00:00.1234567",
  "StopTime": "00:00:00.1234567",
  "ScheduleHours": 1.0,
  "CreatedBy": 6,
  "CreatedDate": "2025-12-06T23:42:50.4587457+00:00",
  "UpdatedBy": 8,
  "UpdatedDate": "2025-12-06T23:42:50.4587457+00:00"
}

application/xml, text/xml

Sample:
<timeScheduleDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="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:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:50.4587457Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <EmployeeID>2</EmployeeID>
  <ScheduleDate>2025-12-06T23:42:50.4587457+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:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:50.4587457Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</timeScheduleDb>