Skip to main content
POST
/
api
/
events
/
{event_id}
/
preview-image
Upload or update a preview image for an event
curl --request POST \
  --url https://tandem.hlofiys.xyz/api/events/{event_id}/preview-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form preview_image='@example-file'
{
  "preview_image_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

event_id
integer<int64>
required

Body

multipart/form-data
preview_image
file
required

The image file to upload.

Response

Image uploaded successfully. Returns the URL of the uploaded image.

preview_image_url
string<uri>