AerScheduler

Groups

Sets of members or resources.

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

get/groups/orgUser

List member groups

Every member group in your organization.

Responses

200OKThe member groups.{ data: Group[] }
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/groups/orgUser \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/groups/orgUser

Create a member group

Adds a member group to your organization. Requires the admin role.

Request body

The group. The addNew* flags auto-enrol future members holding that role.

namerequiredstring
descriptionstring
orgUserIdsinteger[]
addNewUsersboolean
addNewStudentsboolean
addNewInstructorsboolean
addNewRentersboolean

Responses

201CreatedThe member group that was created.{ data: Group }
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/groups/orgUser \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"…"}'
get/groups/resource

List resource groups

Every resource group in your organization.

Responses

200OKThe resource groups.{ data: Group[] }
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/groups/resource \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
post/groups/resource

Create a resource group

Adds a resource group to your organization. Requires the admin role.

Request body

The group.

namerequiredstring
descriptionstring
resourceIdsinteger[]

Responses

201CreatedThe resource group that was created.{ data: Group }
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/groups/resource \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"…"}'
get/groups/orgUser/{orgUserGroupId}

Get a member group

Fetches one member group by id.

Path parameters

orgUserGroupIdrequiredintegerThe member group id.

Responses

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

Update a member group

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

Path parameters

orgUserGroupIdrequiredintegerThe member group id.

Request body

Fields to change.

namestring
descriptionstring
orgUserIdsinteger[]

Responses

200OKThe updated member group.{ data: Group }
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/groups/orgUser/:orgUserGroupId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","description":"…"}'
delete/groups/orgUser/{orgUserGroupId}

Delete a member group

Removes the member group. Requires the admin role.

Path parameters

orgUserGroupIdrequiredintegerThe member group id.

Responses

204No ContentSuccess. No body.
400Bad RequestThe member group 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/groups/orgUser/:orgUserGroupId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"
get/groups/resource/{resourceGroupId}

Get a resource group

Fetches one resource group by id.

Path parameters

resourceGroupIdrequiredintegerThe resource group id.

Responses

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

Update a resource group

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

Path parameters

resourceGroupIdrequiredintegerThe resource group id.

Request body

Fields to change.

namestring
resourceIdsinteger[]

Responses

200OKThe updated resource group.{ data: Group }
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/groups/resource/:resourceGroupId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","resourceIds":[]}'
delete/groups/resource/{resourceGroupId}

Delete a resource group

Removes the resource group. Requires the admin role.

Path parameters

resourceGroupIdrequiredintegerThe resource group id.

Responses

204No ContentSuccess. No body.
400Bad RequestThe resource group 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/groups/resource/:resourceGroupId \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"