GET api/v1/departments/byfacility/{facilityId}

Returns a list of all departments for a given facility.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
facilityId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ApiResponseModelOfListOfDepartmentModel
NameDescriptionTypeAdditional information
Data

ApiResponseDataModelOfListOfDepartmentModel

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": "616af9eb-6ef3-46c0-b0a6-f338da515638",
        "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": "92b5fcdc-ef0e-4e22-9580-881c1d6e5bc1",
        "DepartmentStaffingGroupId": "916b2b7d-e07c-4132-b431-2c0dd9c004b1",
        "CensusInterface": true,
        "HrCompany": 1,
        "ProcessLevel": 1,
        "EffectiveDaysBeforeCredentialExpiresToBlock": 23,
        "UseShiftTradeAutoApprovalRules": true,
        "UseFacilitySchedulePhaseAutomationTime": true,
        "SchedulePhaseAutomationTime": "2026-01-02T09:54:03.3967624-06:00"
      },
      {
        "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": "616af9eb-6ef3-46c0-b0a6-f338da515638",
        "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": "92b5fcdc-ef0e-4e22-9580-881c1d6e5bc1",
        "DepartmentStaffingGroupId": "916b2b7d-e07c-4132-b431-2c0dd9c004b1",
        "CensusInterface": true,
        "HrCompany": 1,
        "ProcessLevel": 1,
        "EffectiveDaysBeforeCredentialExpiresToBlock": 23,
        "UseShiftTradeAutoApprovalRules": true,
        "UseFacilitySchedulePhaseAutomationTime": true,
        "SchedulePhaseAutomationTime": "2026-01-02T09:54:03.3967624-06:00"
      }
    ]
  },
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Warnings": [
    "sample string 1",
    "sample string 2"
  ]
}