Forum Discussion
PlinioGatto
Nov 14, 2023Copper Contributor
"End time can not be a past date." on getStaffAvailability
Today a request to getStaffAvailability that was working no longer works, has anyone experienced the same issue?
We are using Bookings APIs with application permissions.
Request body:
{
"staffIds": [
...
],
"startDateTime": {
"dateTime": "2023-07-04T07:00:00",
"timeZone": "UTC"
},
"endDateTime": {
"dateTime": "2023-08-04T22:00:00",
"timeZone": "UTC"
}
}
Response:
{
"error": {
"code": "UnknownError",
"message": "{\"error\":{\"message\":\"End time can not be a past date.\",\"code\":\"Bad Request\"}}",
"innerError": {
"date": "2023-11-14T09:23:47",
"request-id": ...,
"client-request-id": ...
}
}
}
- PlinioGattoCopper ContributorThe API returned an error because we were checking availability in the past, checking availability in the future works correctly.
Sorry for the oversight.