GET api/v1/departments/userdepartment/{userId}/{facilityId}

For User Returns a list of departments that he has Access to for the selected Facility

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

facilityId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ApiResponseModelOfListOfDepartmentByStaffSkillModel
NameDescriptionTypeAdditional 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"
  ]
}