Events API documentation problems?
I'm working with the Events API and find three aspects that don't work as documented:
$count= parameter value
The API returns a count regardless of the $count setting. In other words, either value, True or False, causes the API to return the count only. To get the actual events I have to completely omit the $count parameter. This is probably a bug with a simple workaround (omit the $count parameter). But see also my other post about a serious performance issue with $count.
$async= parameter
The Events API on Swaggerhub claims to support async operation, but the query is executed synchronously regardless of the value (True or False) or if the parameter is omitted. I presume this is just a documentation error.
$filter= date comparison with 'le' operator
Consider: $filter=EndDate ge 2026-02-23 and StartDate le 2026-02-24
Given the definition of 'le' as 'less than or equal', you would expect the returned set to include events happening on 2026-02-24. In reality this behaves as if 'lt' was specified, returning only events on 2026-02-23.
What I expect is happening is that, for the comparison, 2026-02-24 is being treated as a full datetime 2026-02-24T00:00:00, so the only events that would be included would be events starting at midnight. This probably needs a documentation update.