SmartGare
API referenceEndpoints

Count holds and faults over a period

Returns how many deliberate holds and how many fault windows stand over the period, counted apart — a hold is not a breakdown, and one figure would say neither. **Required permission:** `traffic.bay-availability:read`

GET/traffic/v1/bay-availability-counts

Returns how many deliberate holds and how many fault windows stand over the period, counted apart — a hold is not a breakdown, and one figure would say neither.

Required permission: traffic.bay-availability:read

AuthorizationBearer <token>

In: header

Query Parameters

from*string

Start of the period, inclusive.

Formatdate-time
to*string

End of the period, exclusive.

Formatdate-time

Response Body

*/*

curl -X GET "https://example.com/traffic/v1/bay-availability-counts?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"
{  "reservation_count": 0,  "unavailability_count": 0}