POST api/v1/DepartmentShifts
Creates a new department shift for the department
Request Information
URI Parameters
None.
Body Parameters
CreateDepartmentShiftModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentId | integer |
Required |
|
| Code | string |
Required String length: inclusive between 0 and 3 |
|
| Description | string |
Required String length: inclusive between 0 and 25 |
|
| StartTime | date |
Required |
|
| EndTime | date |
Required |
|
| CountTypeId | integer |
Required |
|
| ProductiveId | integer |
Required |
|
| CanRequest | boolean |
Required |
|
| Disabled | boolean |
Required |
|
| SortOrder | integer |
Required |
|
| Priority | integer |
Required |
|
| BreakMinutes | integer |
Required |
|
| OffsetMinutes | integer |
Required |
|
| TAPayCode | string |
String length: inclusive between 0 and 50 |
|
| TAContractPayCode | string |
String length: inclusive between 0 and 50 |
Request Formats
application/json, text/json
Sample:
{
"DepartmentId": 1,
"Code": "sample string 2",
"Description": "sample string 3",
"StartTime": "2026-01-02T11:32:56.6078256-06:00",
"EndTime": "2026-01-02T11:32:56.6078256-06:00",
"CountTypeId": 6,
"ProductiveId": 7,
"CanRequest": true,
"Disabled": true,
"SortOrder": 10,
"Priority": 11,
"BreakMinutes": 12,
"OffsetMinutes": 13,
"TAPayCode": "sample string 14",
"TAContractPayCode": "sample string 15"
}
Response Information
Resource Description
ApiResponseModelOfDepartmentShiftModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfDepartmentShiftModel |
None. |
|
| Errors | Collection of string |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"PageSize": 1,
"Page": 2,
"TotalPages": 3,
"TotalResults": 4,
"Results": {
"FacilityId": 1,
"DeptId": 2,
"DeptShiftId": 3,
"DeptShiftDescription": "sample string 4",
"Code": "sample string 5",
"EndTime": "2026-01-02T11:32:56.6078256-06:00",
"StartTime": "2026-01-02T11:32:56.6078256-06:00",
"ProductiveId": 8,
"CountTypeId": 9,
"CanRequest": true,
"KronosPayCode": "sample string 11",
"KronosContractPayCode": "sample string 12",
"EffectiveDate": "2026-01-02T11:32:56.6078256-06:00",
"ExpireDate": "2026-01-02T11:32:56.6078256-06:00",
"IsSystem": true
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}