From 9fb1a18cfafe63fcfa18352e4b4e9a6af17afc4a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 12:06:41 +0000 Subject: [PATCH] Document the organisation's default Event Format (CP-9384) is_organisation_default on the Event Format list and detail, and on PATCH /event_categories/{id}, which makes a format the default added to a project whenever events are turned on there. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xpe9tncaZuJi8kUajJ --- openapi.yaml | 26 +++++++++++++++++++++++++- server.js | 8 +++++--- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index cc8732a..13fc225 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -10329,6 +10329,13 @@ paths: Changes an Event Format's settings, as **Edit** on the Manage Event Formats page does. Only the settings you send change. Only an **Organisation Admin** of its organisation may edit it. + **Organisation default:** send `is_organisation_default: true` to make this the organisation's + default Event Format, as **Make default** on the Manage Event Formats page does. The default + is added to a Project whenever events are turned on there (on Project Preferences, by adding + the Events app to the Project, or by a Project Automation), unless the Project's Event Formats + are chosen at the same time. It moves from any other Event Format, so an organisation has at + most one. `false` stops this Event Format being the default. + **Add to Calendar email** (all optional): `send_add_to_calendar_email`, `allow_guests_to_cancel` and `cancellation_guest_status_id`, as on Create. The Guest Status used for cancellations must stay one of the Event Format's Guest Statuses, so remove it from `guest_status_ids` only after @@ -10350,12 +10357,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventFormatInput' + allOf: + - $ref: '#/components/schemas/EventFormatInput' + - type: object + properties: + is_organisation_default: + type: boolean + description: true makes this the organisation's default Event Format; false stops it being the default example: appointment_type: group default_length_minutes: 90 preparation_minutes: 15 debrief_minutes: 15 + is_organisation_default: true responses: "200": description: The edited Event Format @@ -32654,6 +32668,11 @@ components: is_default: type: boolean description: One of the Event Formats every organisation starts with + is_organisation_default: + type: boolean + description: | + Whether this is the organisation's default Event Format, which is added to a Project + whenever events are turned on there. An organisation has at most one. charity_id: type: integer description: The Organisation (Charity) that owns it @@ -33035,6 +33054,11 @@ components: type: string is_default: type: boolean + is_organisation_default: + type: boolean + description: | + Whether this is the organisation's default Event Format, which is added to a Project + whenever events are turned on there. An organisation has at most one. charity_id: type: integer attendance_form_id: diff --git a/server.js b/server.js index a41ce86..6655c84 100644 --- a/server.js +++ b/server.js @@ -4903,6 +4903,7 @@ function buildDocsPage() {

Event Formats (Event Categories in the API) are the templates an organisation's events are created from, such as Workshops, Classes or Meetings. Only an Organisation Admin can list, read, create, edit or delete an organisation's Event Formats. An Event Format can be deleted only once it has no events and is not added to any project; the list says which ones can be deleted and why not. Default formats can be deleted under the same rules.

Appointments: an Event Format can be a One-to-one or Group appointment (appointment_type one_to_one or group; null means "Not an appointment"). default_length_minutes (5-minute steps) sets the end time on the Create Event page, and preparation_minutes and debrief_minutes are the time a colleague needs either side of each appointment.

+

Organisation default: an organisation can make one Event Format its default (is_organisation_default), as Make default on the Manage Event Formats page does. It is added to a project whenever events are turned on there, unless the project's Event Formats are chosen at the same time.

${endpointCard("GET", "/event_categories", "List Event Formats", true, [ @@ -4911,7 +4912,7 @@ function buildDocsPage() { { name: "per_page", type: "integer", required: false, desc: "Records per page" }, { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 incremental sync" } ], [ - { code: "200", cls: "response-2xx", desc: "Paginated list — each with events_count, projects_count, can_delete and delete_blocked_reason" }, + { code: "200", cls: "response-2xx", desc: "Paginated list — each with is_organisation_default, events_count, projects_count, can_delete and delete_blocked_reason" }, { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin (of charity_id, if given)" } ])} ${endpointCard("POST", "/event_categories", "Create an Event Format", true, [ @@ -4944,7 +4945,7 @@ function buildDocsPage() { ${endpointCard("GET", "/event_categories/{id}", "Get an Event Format", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Event Format (Event Category) ID" } ], [ - { code: "200", cls: "response-2xx", desc: "The Event Format with its settings, Guest Statuses, project_ids, appointment settings and Add to Calendar email settings" }, + { code: "200", cls: "response-2xx", desc: "The Event Format with is_organisation_default, its settings, Guest Statuses, project_ids, appointment settings and Add to Calendar email settings" }, { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin of the owning organisation" }, { code: "404", cls: "response-4xx", desc: "Not found, or belongs to an organisation you are not in" } ])} @@ -4969,7 +4970,8 @@ function buildDocsPage() { { name: "debrief_minutes", in: "body", type: "integer", required: false, desc: "Debrief time after each appointment, 0–1440 (default 0)" }, { name: "send_add_to_calendar_email", in: "body", type: "boolean", required: false, desc: "Send an 'Add to Calendar' email to each guest added to an event of this format. Needs the organisation's email messaging turned on" }, { name: "allow_guests_to_cancel", in: "body", type: "boolean", required: false, desc: "Let guests cancel from that email. Only kept while send_add_to_calendar_email is true" }, - { name: "cancellation_guest_status_id", in: "body", type: "integer", required: false, desc: "The Guest Status a guest who cancels is moved to: one of the Event Format's own. Required when allow_guests_to_cancel is true" } + { name: "cancellation_guest_status_id", in: "body", type: "integer", required: false, desc: "The Guest Status a guest who cancels is moved to: one of the Event Format's own. Required when allow_guests_to_cancel is true" }, + { name: "is_organisation_default", in: "body", type: "boolean", required: false, desc: "true makes this the organisation's default Event Format, added to a project whenever events are turned on there (it moves from any other); false stops it being the default" } ], [ { code: "200", cls: "response-2xx", desc: "Edited — only the settings sent change" }, { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin of the owning organisation" },