Skip to content
campaiDeveloper
campai.com

Booking ยท Events

POST/{organizationId}/{mandateId}/booking/events/{eventId}/settings/copy

Copy event settings

Copies groups of settings of a date of a course to other dates of it: to chosen dates, to all upcoming dates, where they become the course value for every date, or to all past dates, which take the course value except for capacity and booking period and keep settings they changed on their own. Images and mail attachments are not copied.

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

  • fieldsstring[]required

    at least 1 items

    place instructors capacity availability info settings offer rates services form
  • targetsobjectrequired
  • 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/settings/copy' \
  --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

  • updatedid[]
Response200
{
  "updated": [
    "000000000000000000000001"
  ]
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.