GET api/v1/departments/byuser/{userId}
Returns a list of Departments that the User belongs to
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ApiResponseModelOfListOfDepartmentByStaffSkillModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfListOfDepartmentByStaffSkillModel |
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": [
{
"DepatmentId": 1,
"DepartmentName": "sample string 2",
"DepartmentCode": "sample string 3",
"FacilityId": 4,
"FacilityName": "sample string 5",
"Disabled": true,
"IsHomeDepartment": true,
"IsSecondary": true,
"IsContractLaborNeedAutomationEnabled": true
},
{
"DepatmentId": 1,
"DepartmentName": "sample string 2",
"DepartmentCode": "sample string 3",
"FacilityId": 4,
"FacilityName": "sample string 5",
"Disabled": true,
"IsHomeDepartment": true,
"IsSecondary": true,
"IsContractLaborNeedAutomationEnabled": true
}
]
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}