post/organizations
Create an organization
Creates an organization, makes you its owner, and returns a token scoped to it. Its first location is created at the same time.
Request body
The new organization.
namerequired | string | |
organizationType | string | |
about | string | |
showInDirectory | boolean | |
detailsrequired | object | |
locationrequired | object | |
Responses
201 | Created | Created. |
400 | Bad Request | Validation failed. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/organizations \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","details":{},"location":{}}'
post/organizations/invite
Invite someone
Emails an invitation with the roles they will get on acceptance. Requires the admin role.
Request body
Who to invite and as what.
emailrequired | string | |
admin | boolean | |
instructor | boolean | |
student | boolean | |
renter | boolean | |
technician | boolean | |
dispatcher | boolean | |
orgUserGroupIds | integer[] | |
Responses
204 | No Content | Success. No body. |
400 | Bad Request | Already invited, or already a member. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/organizations/invite \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"email":"you@yourschool.com"}'
post/organizations/ratings
Create a rating
Request body
The rating.
namerequired | string | |
anyInstructorCanTeachrequired | boolean | |
defaultInstructorRaterequired | integer | Hourly rate in cents. |
Responses
200 | OK | Success.→ { data: object } |
400 | Bad Request | Validation failed. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/organizations/ratings \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","anyInstructorCanTeach":true,"defaultInstructorRate":1}'
post/joinRequests/{id}/accept
Accept a join request
Path parameters
idrequired | integer | The join request id. |
Responses
200 | OK | Success.→ { data: object } |
204 | No Content | Success. No body. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/joinRequests/:id/accept \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/joinRequests/{id}/decline
Decline a join request
Path parameters
idrequired | integer | The join request id. |
Responses
200 | OK | Success.→ { data: object } |
204 | No Content | Success. No body. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/joinRequests/:id/decline \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/organizations/join/{orgCode}
Join an organization by code
Joins using the six-character code. If the organization is private this raises a join request for an administrator to approve instead, and answers 201.
Path parameters
orgCoderequired | string | The organization's join code. |
Responses
200 | OK | Joined. |
201 | Created | A request to join was raised and is awaiting approval.→ { data: object } |
400 | Bad Request | You already belong to this organization. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/organizations/join/:orgCode \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/organizations/leave/{orgId}
Leave an organization
Removes yourself. The last owner cannot leave.
Path parameters
orgIdrequired | integer | The organization to leave. |
Responses
200 | OK | Success.→ { data: object } |
204 | No Content | Success. No body. |
400 | Bad Request | You cannot leave — you are the last owner or administrator. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/organizations/leave/:orgId \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/organizations/removeUser/{userId}
Remove a member
Removes someone from your organization. Requires the admin role.
Path parameters
userIdrequired | integer | The user to remove. |
Responses
204 | No Content | Success. No body. |
400 | Bad Request | They cannot be removed — the last owner or administrator, for instance. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/organizations/removeUser/:userId \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/organizations/switch/{orgId}
Switch active organization
Returns a NEW token scoped to the given organization. Because a token carries exactly one organization, this is how a multi-organization integration moves between them — the old token keeps working and stays pointed at the old one.
Path parameters
orgIdrequired | integer | The organization to switch to. |
Responses
200 | OK | Switched. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
Example request
curl -X POST https://api.aerscheduler.com/organizations/switch/:orgId \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"