Upload event main image
PUT
/manage/events/:eventId/main-imageUpload the event page's main image. Requires the eventWrite permission.
| Auth | Login required |
|---|
Path parameters
eventIdstringrequiredEvent ID or slug.
Request body
filefilerequiredImage file (multipart/form-data); the field name differs per endpoint.
Notes
Images are sent as multipart/form-data. JPEG, PNG and GIF are supported, up to 5MB. Exceeding the limit returns 400 (errorCode 10042).
Request
curl https://api.4s.link/manage/events/EVENT_ID/main-image \-X PUT \-H "Authorization: Bearer 4s_at_..." \-F "file=@image.png"
Example response
{"mainImageUrl": "https://.../main.png"}