Skip to content
campaiDeveloper
campai.com

Booking ยท Events

POST/{organizationId}/{mandateId}/booking/events/{eventId}/gallery

Update event gallery

Replaces the gallery for the course of the specified event, in the supplied order. All dates of the course share the gallery: new uploads are added and pictures left out are removed. Returns the updated gallery.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Who may call it

  • Callers need organization access.
  • Callers need the mandate.read permission.
  • Callers also need the event.edit permission.

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • eventIdidrequired

Body

Content-Type: application/json

  • galleryobject[]required

    at most 12 items

    3 properties
    • fileNamestring

      at most 128 characters

    • resourcestringrequired
    • idstring

      exactly 6 characters

Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/events/YOUR_EVENT_ID/gallery' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

Content-Type: application/json

A list of object.

  • resourcestring

    at least 1 characters

  • fileNamestring

    at most 128 characters

  • contentTypestring

    at most 75 characters

  • fileSizeBytesinteger

    at least 0

  • idstring

    exactly 6 characters

Response200
[
  {
    "resource": "string",
    "id": "string"
  }
]

What else happens

  • Updates the gallery on event records for the course.
  • Adds new uploads and removes pictures left out of the gallery.

Errors

Other errors

StatusErrorWhen
404The given event was not foundIf the event is not found, the endpoint returns HTTP 404 with key booking.event.eventNotFound.

Errors nearly every request can meet are listed under Errors.