POST api/v1/staffavailabilities/unavailable
Add staff's Un-Availabilities
Request Information
URI Parameters
None.
Body Parameters
StaffAvailabilityReturnModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StaffAvailabilityId | integer |
None. |
|
| StaffId | integer |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| IsUnavailable | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"StaffAvailabilityId": 1,
"StaffId": 1,
"StartDate": "2026-01-02T21:49:41.7811855-06:00",
"EndDate": "2026-01-02T21:49:41.7811855-06:00",
"IsUnavailable": true
}
Response Information
Resource Description
ApiResponseModelOfStaffAvailabilityReturnModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfStaffAvailabilityReturnModel |
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": {
"StaffAvailabilityId": 1,
"StaffId": 1,
"StartDate": "2026-01-02T21:49:41.7811855-06:00",
"EndDate": "2026-01-02T21:49:41.7811855-06:00",
"IsUnavailable": true
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}