Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10828,6 +10828,7 @@ paths:
is_default: false
charity_id: 123
attendance_form_id: null
past_attendance_form_ids: []
survey_kiosk_enabled: false
survey_kiosk_registration_enabled: false
enable_guest_fields: false
Expand Down Expand Up @@ -34963,6 +34964,15 @@ components:
type: integer
nullable: true
description: The Survey (Story Category) used to record attendance
past_attendance_form_ids:
type: array
items:
type: integer
description: |
The Surveys the Event Format recorded attendance through before. Attendance recorded
through them still counts in attendance figures. Changing attendance_form_id adds the old
Survey here automatically; send the list without a Survey to stop its attendance counting.
A Survey can only be added if the organisation could use it to record attendance.
survey_kiosk_enabled:
type: boolean
description: Self Check-in
Expand Down Expand Up @@ -35087,6 +35097,11 @@ components:
attendance_form_id:
type: integer
nullable: true
past_attendance_form_ids:
type: array
items:
type: integer
description: Surveys the Event Format recorded attendance through before, whose attendance still counts
survey_kiosk_enabled:
type: boolean
survey_kiosk_registration_enabled:
Expand Down
4 changes: 3 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5211,6 +5211,7 @@ function buildDocsPage() {
{ name: "name", in: "body", type: "string", required: true, desc: "Name, e.g. Therapy session" },
{ name: "guest_status_ids", in: "body", type: "integer[]", required: false, desc: "The organisation's Guest Statuses its events use, in order. If left out, a new Event Format gets Invited then Cancelled" },
{ name: "attendance_form_id", in: "body", type: "integer", required: false, desc: "The Survey (Story Category) used to record attendance, or null" },
{ name: "past_attendance_form_ids", in: "body", type: "integer[]", required: false, desc: "Surveys it recorded attendance through before, whose attendance still counts. Changing attendance_form_id adds the old Survey automatically; leave a Survey out to stop its attendance counting" },
{ name: "survey_kiosk_enabled", in: "body", type: "boolean", required: false, desc: "Self Check-in" },
{ name: "survey_kiosk_registration_enabled", in: "body", type: "boolean", required: false, desc: "Let new people register at Self Check-in" },
{ name: "enable_guest_fields", in: "body", type: "boolean", required: false, desc: "Guest fields" },
Expand All @@ -5236,7 +5237,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 is_organisation_default, 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, attendance_form_id and past_attendance_form_ids, 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" }
])}
Expand All @@ -5245,6 +5246,7 @@ function buildDocsPage() {
{ name: "name", in: "body", type: "string", required: false, desc: "New name" },
{ name: "guest_status_ids", in: "body", type: "integer[]", required: false, desc: "The organisation's Guest Statuses its events use, in order" },
{ name: "attendance_form_id", in: "body", type: "integer", required: false, desc: "The Survey (Story Category) used to record attendance, or null" },
{ name: "past_attendance_form_ids", in: "body", type: "integer[]", required: false, desc: "Surveys it recorded attendance through before, whose attendance still counts. Changing attendance_form_id adds the old Survey automatically; leave a Survey out to stop its attendance counting" },
{ name: "survey_kiosk_enabled", in: "body", type: "boolean", required: false, desc: "Self Check-in" },
{ name: "survey_kiosk_registration_enabled", in: "body", type: "boolean", required: false, desc: "Let new people register at Self Check-in" },
{ name: "enable_guest_fields", in: "body", type: "boolean", required: false, desc: "Guest fields" },
Expand Down
Loading