AerScheduler

Announcements

Notices to members.

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

get/announcements

List announcements

Live notices for your organization. Expired ones are swept hourly.

Responses

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

Post an announcement

Notifies the roles you target. Requires the admin role.

Request body

The notice.

titlerequiredstring
messagerequiredstring
expireAtstring
forRolesstring[]

Responses

200OKSuccess.{ data: Announcement }
201CreatedSuccess.{ data: Announcement }
400Bad RequestValidation failed.
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/announcements \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"…","message":"…"}'
patch/announcements/{id}

Update an announcement

Requires the admin role.

Path parameters

idrequiredintegerThe announcement id.

Request body

Fields to change.

titlestring
messagestring
expireAtstring

Responses

200OKSuccess.{ data: Announcement }
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/announcements/:id \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"…","message":"…"}'
delete/announcements/{id}

Delete an announcement

Requires the admin role.

Path parameters

idrequiredintegerThe announcement id.

Responses

204No ContentSuccess. No body.
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/announcements/:id \
  -H "Authorization: Bearer $AERSCHEDULER_TOKEN"