Locations

Bases of operation.

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

get/locations

List locations

Every location in your organization.

Query parameters

limitintegerRows to return, 1,1000. Defaults to 1000; a larger value is clamped rather than rejected.
offsetintegerRows to skip, for paging. Defaults to 0.
sortstringField to order by before paging, as a dot path into the row , total, user.firstName. Omit to keep the endpoint's own order. Numbers and ISO timestamps order as numbers and instants, not as text, and empty values always sort last regardless of direction. Ordering happens before the page is cut, so it orders the whole collection rather than the page you are holding.
order"asc" | "desc"asc (default) or desc. Only meaningful with sort.

Responses

200OKThe locations.{ data: Location[] }
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/locations \
  -H "Authorization: Bearer $AERSCHEDULER_KEY"
post/locations

Create a location

Adds a location to your organization. Requires the admin role.

Request body

The new location. Picking a published airport should send its ident and coordinates. A typed site can omit both. The address is stored as entered.

namerequiredstring
identstring | nullICAO when the field has one (KAPA), otherwise the FAA local code. Optional.
timeZonestring | null
addressAddress
coordinatesobject

Responses

201CreatedThe location that was created.{ data: Location }
400Bad RequestThe body failed validation. message says which field.
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 POST https://api.aerscheduler.com/locations \
  -H "Authorization: Bearer $AERSCHEDULER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"…"}'
get/locations/{id}

Get a location

Fetches one location by id.

Path parameters

idrequiredintegerThe location id.

Responses

200OKSuccess.{ data: Location }
401UnauthorizedNo token, an expired token, or a malformed one. Sign in again.
403ForbiddenAuthenticated, but not allowed to do this.
404Not FoundNo such location, or it belongs to another organization.
429Too Many RequestsRate limited. Retry-After says how long to wait.
Example request
curl https://api.aerscheduler.com/locations/:id \
  -H "Authorization: Bearer $AERSCHEDULER_KEY"
patch/locations/{id}

Update a location

Changes the fields you send and leaves the rest alone. Requires the admin role.

Path parameters

idrequiredintegerThe location id.

Request body

Fields to change. Omitting ident leaves the stored identifier alone; send null to clear it. Same rule for timeZone. Omitting coordinates leaves the stored position alone.

namestring
identstring | null
timeZonestring | null
addressAddress
coordinatesobject

Responses

200OKThe updated location.{ data: Location }
400Bad RequestThe body failed validation.
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/locations/:id \
  -H "Authorization: Bearer $AERSCHEDULER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","ident":"…"}'
delete/locations/{id}

Delete a location

Removes the location. Requires the admin role.

Path parameters

idrequiredintegerThe location id.

Responses

204No ContentSuccess. No body.
400Bad RequestThe location could not be deleted , usually because something still references it.
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 DELETE https://api.aerscheduler.com/locations/:id \
  -H "Authorization: Bearer $AERSCHEDULER_KEY"