API Details
POST Api/Units/{unit_id}/Schedules/{schedule_id}/ScheduleItems
Add a new scheduled item.
Request Information
Parameters
| Name | Description |
|---|---|
| unit_id | The Unit id. |
| schedule_id | The Unit Schedule id. |
| body_request | Body parameter. |
Request body formats
application/json, text/json
Sample:
{
"DayNum": 1,
"PrssID": 2,
"JobCode": "sample string 3",
"Shift": 4,
"TimeIn": "sample string 5",
"TimeOut": "sample string 6"
}
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 'AddEmployeeToScheduleApiRequest'.
Response Information
Response body formats
application/json, text/json
Sample:
{
"ScheduleItem": {
"ScheduleItemID": 1,
"ScheduledTimeInDate": "2026-04-03T23:28:09.2461571-04:00",
"ScheduledTimeOutDate": "2026-04-03T23:28:09.2461571-04:00",
"ScheduledTimeInString": "sample string 4",
"ScheduledTimeOutString": "sample string 5",
"ScheduledCost": 6.0,
"ScheduledHours": 7.1,
"MealCredit": 8.0,
"ItemOrder": 9
},
"Employee": {
"PrssID": 1,
"LastName": "sample string 2",
"FirstName": "sample string 3",
"Nickname": "sample string 4",
"JobTitle": "sample string 5",
"Elvis": "sample string 6",
"IsPersonInCharge": true,
"IsRookie": true,
"WeeksWorked": 9,
"GuaranteedHours": 1,
"TotalWeeksWorked": 10
},
"Job": {
"JobCode": "sample string 1",
"Name": "sample string 2"
},
"Shift": {
"ID": 1,
"Name": "sample string 2"
},
"ShiftDay": {
"DayNumber": 1,
"ShiftDate": "2026-04-03T23:28:09.2461571-04:00",
"ShiftDateString": "sample string 3",
"CanScheduleFlag": true,
"SalesOver12WeeksWorkedFlag": true
}
}
