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.