Skip to main content
Crews

Get a crew's configured availability

GET
/crews/{id}/availability
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

idintegerrequired
Required range: 0 < x <= 9007199254740991
startstringquery

Start of the exception window. Defaults to now.

endstringquery

End of the exception window, after start, at most 366 days later. Defaults to 31 days after start, or after now.

Response

application/json

Weekly windows and exceptions

X-RateLimit-Limitintegerheader

The company's daily request limit.

X-RateLimit-Remainingintegerheader

Requests left in the current daily window.

X-RateLimit-Resetstringheader

When the daily window resets (UTC ISO timestamp).

X-RateLimit-Minute-Limitintegerheader

The company's per-minute request limit.

X-RateLimit-Minute-Remainingintegerheader

Requests left in the current minute.

X-RateLimit-Minute-Resetstringheader

When the minute window resets (UTC ISO timestamp).

availability_enabledbooleanrequired

When false the crew has no availability of its own and the lists below are not used for scheduling.

crew_idintegerrequired
exceptionsobject[]required

Exceptions overlapping the requested window.

weekly_availabilityobject[]required

Configured weekly working windows, sorted by day then start.