POST
/api/v1/server/session-polls/{pollId}/cancel
Request
Response
200
Success
Authorization
AuthorizationstringrequiredYour API token as
Bearer YOUR_TOKEN. Create one in your server's dashboard settings.Path parameters
pollIdstringrequiredBody
performedBystringrequiredMember ID of the staff member doing this.
Response
200 Success
createdAtintegerrequiredWhen it was created.
createdBystringrequiredMember ID of who started it, or
SYSTEM.idstringrequiredUnique ID.
serverIdstringrequiredServer ID.
statusintegerrequired0 Voting, 1 Enough votes, 2 Cancelled, 3 Expired, 4 Session started.statusUpdatedAtintegerrequiredWhen
status last changed.voterDiscordIdsstring[]requiredDiscord IDs of everyone who voted.
votesintegerrequiredVotes so far.
votesRequiredintegerrequiredVotes needed before the session can start.
aopinteger | nullArea of play the session will use:
1 City, 2 County, 3 Highrock, 4 Custom (see aopCustomId).aopCustomIdstring | nullThe custom AOP, when
aop is 4.cancelledBystring | nullMember ID of who cancelled it.
channelIdstring | nullDiscord channel of the poll message.
messageIdstring | nullDiscord ID of the poll message.
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 poll has ended |
429 | Rate limited. See Retry-After and details. |
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 |