AerScheduler

Availability

When people and aircraft are free.

5 endpoints · base URL https://api.aerscheduler.com

get/availability/me

Your free windows

When you are free in a window, after bookings are subtracted.

Query parameters

startDatestringStart of the window, ISO 8601. Include an offset or Z.
endDatestringEnd of the window, ISO 8601.

Responses

200OKSuccess.{ data: Availability[] }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/availability/me \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
get/users/availability

Get your recurring availability

Your standing weekly availability pattern.

Responses

200OKSuccess.{ data: Availability[] }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/users/availability \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
patch/users/availability

Set your recurring availability

Replaces your standing weekly availability.

Request body

The new pattern.

availabilityobject[]

Responses

200OKUpdated.
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl -X PATCH https://api.aerscheduler.com/users/availability \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"availability":[]}'
get/availability/resource/{id}

A resource's free windows

Used to find an aircraft's open slots before booking.

Path parameters

idrequiredintegerThe resource id.

Query parameters

startDatestringStart of the window, ISO 8601. Include an offset or Z.
endDatestringEnd of the window, ISO 8601.

Responses

200OKSuccess.{ data: Availability[] }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/availability/resource/:id \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
get/availability/user/{userId}

A person's free windows

Used to find an instructor's open slots.

Path parameters

userIdrequiredintegerThe user id.

Query parameters

startDatestringStart of the window, ISO 8601. Include an offset or Z.
endDatestringEnd of the window, ISO 8601.

Responses

200OKSuccess.{ data: Availability[] }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/availability/user/:userId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"