POST /api/v1/events/{id}/cancel
Cancel an event. All open positions are refunded to their holders at the original purchase price. The event is marked as cancelled and removed from the active feed.
Authentication​
Required -- Bearer token. Caller must be the event creator.
Request​
| Parameter | Type | In | Description |
|---|---|---|---|
id | int64 | path | Event ID (int64) |
Example​
curl -X POST https://api.intotes.com/api/v1/events/1/cancel \
-H "Authorization: Bearer <token>"
Response​
200 OK​
{
"status": "ok"
}
403 Forbidden​
Returned when the authenticated user is not the event creator.
{
"error": "forbidden"
}
404 Not Found​
{
"error": "event not found"
}
409 Conflict​
Returned when the event is already closed or cancelled.
{
"error": "event already resolved"
}