Confirm or deny a spot
Records the caller's answer to "Is this place still dangerous?".
1means still dangerous. It also refresheslast_confirmed_at.-1means not anymore.
Each visitor has one vote per spot. Sending the opposite value changes the vote, and
sending the same value again returns 409. After every vote the community status is
recalculated:
| Condition | status |
|---|---|
confirmations − denials ≥ 3 |
confirmed |
denials > confirmations + 2 |
disputed |
| otherwise | unverified |
Rate limit: 60 votes per hour per visitor.
POST
https://deathspot.org/api/spots/{id}/votePath parameters
Request bodyJSON
Returns
200
The vote was recorded. Returns the updated spot.
400
The id isn't an integer, or value isn't 1 or -1.
404
No approved spot has this id. Pending and rejected spots can't be voted on.
409
The caller already voted this way on this spot.