Skip to content
campaiDeveloper
campai.com

Booking · Events · Attendees

POST/{organizationId}/{mandateId}/booking/events/{eventId}/attendees/{attendeeId}/switchRate

Switch attendee rate

Switches a booked attendee of a specific event between two rates with a monthly fee: the current contract ends with this month, a contract on the new rate's plan starts with the next month and the attendee's dates from then on carry the new rate.

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
  • attendee.edit
  • contract.edit

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • eventIdidrequired
  • attendeeIdidrequired

Body

Content-Type: application/json

  • rateIdstringrequired

    exactly 8 characters

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/attendees/YOUR_ATTENDEE_ID/switchRate' \
  --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.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.