Update a booking page
PUT /booking_pages/{uuid}
/booking_pages/{uuid}Changes the configuration of one of the user's booking pages: title, hours, duration, calendars, form fields and the rest. Only the keys you send change.
When to use: To edit a draft, or to change a published or paused page (opening hours, a day off, fields of the form, calendars).
When not to use: To publish, pause or archive the page, use publish_booking_page, pause_booking_page or archive_booking_page. To change who can use the page, use set_booking_page_sharing. To change the sender or the email subjects, use update_booking_email_settings. An archived page cannot be edited.
Side effects: On a published page the change takes effect immediately for new bookings (the whole page is validated as if publishing it). A change of configuration makes the offer links created earlier with create_booking_offer stop working. Bookings already made are not touched. Nothing is sent and no activity entry is recorded.
Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the booking page. Get it from list_booking_pages.
uuidThe updated BookingPage resource
TypeScript Definitions
Use the request body type in TypeScript.
Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.
Every operation checks the CRM access in its provider or processor first (crm.contacts_companies.write with a seat,
also to read: BookingPageAccess::writer), because API Platform evaluates security after the provider. The view is
projected by {@see \App\Api\State\Mapper\Crm\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "configuration": { "schema_version": 1, "title": "string", "description": "string", "slug": "string", "custom_host": true, "host_name": "string", "host_image_asset_uuid": "990f6081-57f1-4059-abd8-89fc8938bf99", "logo_asset_uuid": "0cc7c9e7-cdc0-45c9-a918-414734ca9b2c", "location": "google_meet", "location_value": "string", "allowed_durations": [ 0 ], "default_duration": 15, "allow_duration_selection": true, "require_email_verification": true, "hour_format": "12h", "time_zone": "string", "weekly_ranges": [ { "day": 1, "ranges": [ { "start": "string", "end": "string" } ] } ], "dated_exceptions": [ { "date": "2019-08-24", "closed": true, "ranges": [ { "start": "string", "end": "string" } ] } ], "notice_minutes": 0, "horizon_days": 1, "buffer_before_minutes": 0, "buffer_after_minutes": 0, "daily_limit": 0, "destination_calendar_resource_uuid": "2c7c36bc-79af-457e-809c-bb42b54ff147", "availability_calendar_resource_uuids": [ "string" ], "fields": [ { "id": "string", "source": "question", "label": "string", "control": "string", "required": true, "field_reference": { "entity": "contact", "kind": "structural", "key": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } } ], "contact_policy": "fill_empty", "company_policy": "fill_empty" }, "expected_version": 1 }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "state": "draft", "version": 0, "configuration": { "schema_version": 1, "title": "string", "description": "string", "slug": "string", "custom_host": true, "host_name": "string", "host_image_asset_uuid": "990f6081-57f1-4059-abd8-89fc8938bf99", "logo_asset_uuid": "0cc7c9e7-cdc0-45c9-a918-414734ca9b2c", "location": "google_meet", "location_value": "string", "allowed_durations": [ 0 ], "default_duration": 15, "allow_duration_selection": true, "require_email_verification": true, "hour_format": "12h", "time_zone": "string", "weekly_ranges": [ { "day": 1, "ranges": [ { "start": "string", "end": "string" } ] } ], "dated_exceptions": [ { "date": "2019-08-24", "closed": true, "ranges": [ { "start": "string", "end": "string" } ] } ], "notice_minutes": 0, "horizon_days": 1, "buffer_before_minutes": 0, "buffer_after_minutes": 0, "daily_limit": 0, "destination_calendar_resource_uuid": "2c7c36bc-79af-457e-809c-bb42b54ff147", "availability_calendar_resource_uuids": [ "string" ], "fields": [ { "id": "string", "source": "question", "label": "string", "control": "string", "required": true, "field_reference": { "entity": "contact", "kind": "structural", "key": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } } ], "contact_policy": "fill_empty", "company_policy": "fill_empty" }, "host_name": "string", "host_image_url": "string", "logo_url": "string", "public_url": "http://example.com", "sharing": { "mode": "owner_only", "user_ids": [ "string" ], "team_ids": [ "string" ], "subjects": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subject_type": "user", "name": "string", "avatar_url": "string", "selectable": true, "status": "active", "selected": true } ] }, "calendar_status": "ok", "sender_status": "ok", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}