POST
/api/v1/server/sessions/{sessionId}/shutdown
Request
Response
200
Success
Authorization
AuthorizationstringrequiredYour API token as
Bearer YOUR_TOKEN. Create one in your server's dashboard settings.Path parameters
sessionIdstringrequiredBody
performedBystringrequiredMember ID of the staff member doing this.
Response
200 Success
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 |
404 | Not found |
409 | The session isn't active |
429 | A session was shut down 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 |