PUT api/v1/departments
Updates the department information
Request Information
URI Parameters
None.
Body Parameters
UpdateDepartmentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentId | integer |
Required |
|
| FacilityId | integer |
Required |
|
| Code | string |
Required String length: inclusive between 0 and 10 |
|
| Description | string |
Required String length: inclusive between 0 and 40 |
|
| ScheduleFormatId | integer |
None. |
|
| Disabled | boolean |
Required |
|
| AutoRelease | boolean |
Required |
|
| AutoReleaseHours | integer |
Required |
|
| AutoConfirm | boolean |
None. |
|
| DisableSelfSchedule | boolean |
Required |
|
| LimitSelfScheduleToTarget | boolean |
Required |
|
| IncludeInMORReport | boolean |
Required |
|
| HRDepartmentCode | string |
Required String length: inclusive between 0 and 10 |
|
| KronosExportEnabled | boolean |
Required |
|
| KronosImportEnabled | boolean |
Required |
|
| IsasStaffingGridStatusId | integer |
Required Range: inclusive between 1 and 4 |
|
| IsasVolumeForecastStatusId | integer |
Required Range: inclusive between 1 and 4 |
|
| UnitOfServiceLabel | string |
Required String length: inclusive between 0 and 15 |
|
| CredentialTrackingStatusId | integer |
None. |
|
| DaysBeforeCredExpToBlock | integer |
Range: inclusive between 0 and 14 |
|
| DefaultPatientClassificationRating | decimal number |
Required |
|
| AccountingUnit | string |
Required String length: inclusive between 0 and 10 |
|
| ClusterId | globally unique identifier |
None. |
|
| DepartmentStaffingGroupId | globally unique identifier |
None. |
|
| CensusInterface | boolean |
Required |
|
| UseFacilitySchedulePhaseAutomationTime | boolean |
None. |
|
| SchedulePhaseAutomationTime | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"DepartmentId": 1,
"FacilityId": 2,
"Code": "sample string 3",
"Description": "sample string 4",
"ScheduleFormatId": 1,
"Disabled": true,
"AutoRelease": true,
"AutoReleaseHours": 7,
"AutoConfirm": true,
"DisableSelfSchedule": true,
"LimitSelfScheduleToTarget": true,
"IncludeInMORReport": true,
"HRDepartmentCode": "sample string 11",
"KronosExportEnabled": true,
"KronosImportEnabled": true,
"IsasStaffingGridStatusId": 14,
"IsasVolumeForecastStatusId": 15,
"UnitOfServiceLabel": "sample string 16",
"CredentialTrackingStatusId": 1,
"DaysBeforeCredExpToBlock": 1,
"DefaultPatientClassificationRating": 17.0,
"AccountingUnit": "sample string 18",
"ClusterId": "4e140dd5-ee1d-4f7e-92bf-8a98fcca0072",
"DepartmentStaffingGroupId": "7a9d4618-4ce6-429f-825c-dae185a2ce4d",
"CensusInterface": true,
"UseFacilitySchedulePhaseAutomationTime": true,
"SchedulePhaseAutomationTime": "2026-01-02T09:06:03.1673564-06:00"
}
Response Information
Resource Description
ApiResponseModelOfDepartmentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfDepartmentModel |
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": {
"DepartmentId": 1,
"FacilityId": 2,
"FacilityName": "sample string 3",
"FacilityCoId": "sample string 4",
"Code": "sample string 5",
"Description": "sample string 6",
"ScheduleFormatId": 1,
"Disabled": true,
"Version": "QEA=",
"RowGuid": "e08b7fd9-8eb5-4a73-960c-8f6d523f488c",
"AutoRelease": true,
"AutoReleaseHours": 10,
"AutoConfirm": true,
"DisableSelfSchedule": true,
"LimitSelfScheduleToTarget": true,
"IncludeInMORReport": true,
"HRDepartmentCode": "sample string 14",
"TAExportEnabled": true,
"TAImportEnabled": true,
"IsasStaffingGridStatusId": 17,
"IsasVolumeForecastStatusId": 18,
"UnitOfServiceLabel": "sample string 19",
"CredentialTrackingStatusId": 1,
"DaysBeforeCredExpToBlock": 1,
"DefaultPatientClassificationRating": 20.0,
"AccountingUnit": "sample string 21",
"ClusterId": "03467828-4742-444f-bae2-a9dacc634df2",
"DepartmentStaffingGroupId": "5ca0c324-8598-4fb2-9a6a-b8fdb0c6631c",
"CensusInterface": true,
"HrCompany": 1,
"ProcessLevel": 1,
"EffectiveDaysBeforeCredentialExpiresToBlock": 23,
"UseShiftTradeAutoApprovalRules": true,
"UseFacilitySchedulePhaseAutomationTime": true,
"SchedulePhaseAutomationTime": "2026-01-02T09:06:03.1829488-06:00"
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}