GET api/v1/departments/userdefault/{userId}
Returns the default department for a given user Id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
The User Id of the User |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
The User's default Department
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": "bd3ce527-7996-4a46-ac6d-2ec8992d7132",
"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": "dcb4233e-ebec-4099-a5df-6eb60ee32a72",
"DepartmentStaffingGroupId": "69628b5f-a8e2-44b4-9cf2-3056177de98d",
"CensusInterface": true,
"HrCompany": 1,
"ProcessLevel": 1,
"EffectiveDaysBeforeCredentialExpiresToBlock": 23,
"UseShiftTradeAutoApprovalRules": true,
"UseFacilitySchedulePhaseAutomationTime": true,
"SchedulePhaseAutomationTime": "2026-01-02T21:48:34.5837062-06:00"
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}