Skip to content
campaiDeveloper
campai.com

Booking ยท Seat groups

DELETE/{organizationId}/booking/seatGroups/{seatGroupId}

Delete seat group

Deletes the specified seat group from an organization. Its events no longer share seats, but keep their own maximum attendees. The endpoint returns no content.

Permissions

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

Who may call it

  • The caller must have organization access and the event.edit permission.

Request

Path parameters

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

Response

200 Successful response

No response body is specified.

What else happens

  • When the seat group exists, the endpoint sets settings.seatGroup to null on the organization's events that reference it.
  • When the seat group exists, the endpoint deletes it from eventSeatGroups.

Errors

Other errors

StatusErrorWhen
404The seat group was not foundIf the seat group is not found in the organization, the endpoint returns 404 NOT_FOUND with message key routes.booking.seatGroups.noSeatGroup.

Errors nearly every request can meet are listed under Errors.