Skip to main content

Endpoint

POST /api/image
Uploads an image file to a specific event. The image will be stored and associated with the provided event ID.

Request

This endpoint accepts multipart/form-data with the following parts:
file
file
required
The image file to upload
eventId
string
required
The ID of the event to associate the image with (numeric value as string)

Response

response
string
A string message indicating the result of the upload operation

Example request

curl -X POST https://api.brautcloud.com/api/image \
  -H "Content-Type: multipart/form-data" \
  -F "file=@/path/to/image.jpg" \
  -F "eventId=123"

Example response

Image uploaded successfully

Build docs developers (and LLMs) love