Skip to content
campaiDeveloper
campai.com

Booking · Seat groups

GET/{organizationId}/booking/seatGroupsReads only

List seat groups

Lists seat groups for the specified organization, sorted by name. Each group includes _id, name, and maxAttendees. Events in a seat group share its seats, so overlapping dates can together take at most that number of attendees.

Permissions

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

Who may call it

  • Organization access is required.
  • The caller needs the event.read permission.

Request

Path parameters

  • organizationIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/booking/seatGroups' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

A list of object.

  • _idid
  • namestring

    1–60 characters

  • maxAttendeesinteger
Response200
[
  {
    "_id": "000000000000000000000001",
    "name": "string",
    "maxAttendees": 1
  }
]

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.