Skip to content
campaiDeveloper
campai.com

Booking ยท Events

POST/{organizationId}/{mandateId}/booking/events/{eventId}/overrides/reset

Reset event override

Gives a date of a course the course value of a setting the date changed on its own: its place, instructors, capacity (maximum and minimum attendees and waitlist) or booking period. The value comes from the closest other date that follows the course.

Permissions

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

Permission checks in detail
Required permissions
  • mandate.read
  • event.edit

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • eventIdidrequired

Body

Content-Type: application/json

  • fieldstringrequired
    place instructors capacity availability
  • notifyAttendeesboolean

    default false

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/overrides/reset' \
  --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

  • insertedid[]
  • updatedid[]
  • deletedid[]
  • blockedinteger

    at least 0

Response200
{
  "inserted": [
    "000000000000000000000001"
  ],
  "updated": [
    "000000000000000000000001"
  ],
  "deleted": [
    "000000000000000000000001"
  ],
  "blocked": 0
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.