GET api/v1/staffavailabilities/unavailable/{departmentId}/{startDate}/{endDate}/{staffId}
Retrieve Staff Un-Availabilities by department. This is an asynchronous service.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| departmentId | integer |
Required |
|
| startDate | date |
Required |
|
| endDate | date |
Required |
|
| staffId | integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
ApiResponseModelOfListOfStaffAvailabilityByDepartmentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfListOfStaffAvailabilityByDepartmentModel |
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": [
{
"StaffId": 1,
"Availabilities": [
{
"StartDateTime": "2026-01-02T21:52:47.9075612-06:00",
"EndDateTime": "2026-01-02T21:52:47.9075612-06:00"
},
{
"StartDateTime": "2026-01-02T21:52:47.9075612-06:00",
"EndDateTime": "2026-01-02T21:52:47.9075612-06:00"
}
]
},
{
"StaffId": 1,
"Availabilities": [
{
"StartDateTime": "2026-01-02T21:52:47.9075612-06:00",
"EndDateTime": "2026-01-02T21:52:47.9075612-06:00"
},
{
"StartDateTime": "2026-01-02T21:52:47.9075612-06:00",
"EndDateTime": "2026-01-02T21:52:47.9075612-06:00"
}
]
}
]
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}