Skip to main content

POST /api/v1/events/{id}/active

Set an event as active or inactive. Controls whether the event appears in the public feed.

Authentication​

Required -- Bearer token. Caller must be the event creator.

Request​

ParameterTypeInDescription
idint64pathEvent ID (int64)
is_activebooleanbodytrue to activate the event, false to hide it

Example​

curl -X POST https://api.intotes.com/api/v1/events/1/active \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{ "is_active": true }'

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"
}