Skip to main content

DELETE /api/v1/events/{id}/image

Deletes the cover image for an event. The image is removed from Cloudflare R2 storage and the event's image_url is cleared.

Authentication​

Required. User must be the event Creator or an Admin.

Request​

ParameterTypeInDescription
idint64pathRequired. Numeric event ID

Example​

curl -X DELETE "https://api.intotes.com/api/v1/events/1/image" \
-H "Authorization: Bearer <access_token>"

Response​

200 OK​

{}

403 Forbidden​

{
"error": "insufficient permissions"
}

404 Not Found​

{
"error": "event not found"
}