Skip to content
campaiDeveloper
campai.com

Booking · Seat groups

POST/{organizationId}/booking/seatGroups

Create seat group

Creates a seat group for an organization using a name and maxAttendees, the number of attendees its overlapping dates can take together. Returns the new seat group's _id.

Permissions

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

Who may call it

  • Requires access to the organization.
  • Requires the event.edit permission.

Request

Path parameters

  • organizationIdidrequired

Body

Content-Type: application/json

  • namestringrequired

    1–60 characters

  • maxAttendeesintegerrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/booking/seatGroups' \
  --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

  • _idid
Response200
{
  "_id": "000000000000000000000001"
}

What else happens

  • Creates an eventSeatGroups record for the organization.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.