Skip to content
campaiDeveloper
campai.com

Booking · Settings

POST/{organizationId}/booking/settings/update

Update booking settings

Updates an organization's booking settings using organizationId, retention, waitlist, electronicInvoices, and instructorsCancelDates. Retention controls anonymization, while waitlist sets the default for new events. 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 access to the organization.
  • The caller needs the organization.edit permission.
  • The caller also needs the booking.edit permission.

Request

Path parameters

  • organizationIdidrequired

Body

Content-Type: application/json

  • retentionobjectrequired
    1 property
    • anonymizeAfterMonthsintegerrequirednullable

      1–120

  • waitlistobjectrequirednullable
    2 properties
    • modestringrequired
      ordered random manual
    • offerAvailableHoursnumberrequirednullable
  • electronicInvoicesbooleanrequired
  • instructorsCancelDatesbooleanrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/booking/settings/update' \
  --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

No response body is specified.

What else happens

  • If a bookingSettings record exists for the organization, its settings are updated.
  • If no bookingSettings record exists for the organization, one is created.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.