POST /api/v1/events/{id}/image
Uploads a cover image for an event. The image is stored in Cloudflare R2 and the resulting URL is saved on the event. Accepts multipart/form-data with the image file in the image field.
Authentication​
Required. User must be the event Creator or an Admin.
Request​
| Parameter | Type | In | Description |
|---|---|---|---|
id | int64 | path | Required. Numeric event ID |
image | file | form-data | Required. Image file (JPEG, PNG, WebP) |
Example​
curl -X POST "https://api.intotes.com/api/v1/events/1/image" \
-H "Authorization: Bearer <access_token>" \
-F "image=@/path/to/event-cover.png"
Response​
200 OK​
{
"image_url": "https://images.intotes.com/events/1.png"
}
403 Forbidden​
{
"error": "insufficient permissions"
}
404 Not Found​
{
"error": "event not found"
}