POST
/api/v1/server/sessions
Request
Response
201
Created
Authorization
AuthorizationstringrequiredYour API token as
Bearer YOUR_TOKEN. Create one in your server's dashboard settings.Body
performedBystringrequiredMember ID of the staff member starting it. Needs the Manage Sessions permission and a linked Discord account.
aopstring | nullArea of play.
custom needs customAopId from the session settings.Allowed values:
nonecitycountyhighrockcustomcustomAopIdstring | nullThe custom AOP to use when
aop is custom.Response
201 Created
createdAtintegerrequiredWhen it was created. For scheduled sessions, when it was scheduled.
createdBystringrequiredMember ID of who started or scheduled it, or
SYSTEM.idstringrequiredUnique ID.
messagesobject[]requiredDiscord messages posted for the session.
type is 0 Startup, 1 Shutdown, 2 Boost, 3 Server full, 4 Scheduled.serverIdstringrequiredServer ID.
statusintegerrequired0 Active, 1 Ended, 2 Scheduled.statusUpdatedAtintegerrequiredWhen
status last changed.aopinteger | nullArea of play:
1 City, 2 County, 3 Highrock, 4 Custom (see aopCustomId).aopCustomIdstring | nullThe custom AOP, when
aop is 4.autoStartedboolean | nullWhether a scheduled session started by itself.
endedBystring | nullMember ID of who shut it down.
fullPostedboolean | nullWhether a server full message was posted.
pollIdstring | nullThe poll that led to this session.
scheduledStartTimeinteger | nullWhen a scheduled session is due to start.
startedAtinteger | nullWhen the session started. Missing while it's scheduled.
Errors
| Status | Meaning |
|---|---|
400 | Invalid request. validation_failed lists each invalid field in details.fields. |
401 | Missing, invalid or expired token |
403 | Success |
409 | A session is already active, or sessions are turned off |
429 | A session was started in the last 30 seconds |
500 | Internal server error |
502 | next did not confirm the write. Check whether it applied before retrying. |
503 | Write endpoints are not configured on this deployment |