From f0f2bf89d0276c8760b9fb318150c519e009458d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 09:17:42 +0000 Subject: [PATCH 1/3] Document the Eventbrite connection endpoints CP-9013: GET/PATCH/DELETE /eventbrite_connection and POST /eventbrite_connection/test, the EventbriteConnection schema, and the matching endpoint cards and nav link on the docs page. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xodTwsfAtwUgwkAT9S --- openapi.yaml | 214 +++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 39 ++++++++++ 2 files changed, 253 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index e412f74..90eb986 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -311,6 +311,11 @@ tags: description: | HTTPS endpoints an Organisation's admins register to receive signed events when Contacts, Stories and Projects change and when imports finish. See Webhooks above. + - name: Eventbrite + description: | + An Organisation's connection to Eventbrite, which brings Eventbrite events, ticket holders and + check-ins into Makerble as Events, Contacts and attendance Stories. Only the Organisation's admins + can see or change it. paths: @@ -12444,6 +12449,139 @@ paths: "404": $ref: '#/components/responses/NotFound' + /eventbrite_connection: + get: + tags: [Eventbrite] + summary: Get the Organisation's Eventbrite connection + description: | + Whether the Organisation (Charity) is connected to Eventbrite. `status` is `not_connected`, + `choosing_organisation` (signed in, but the Eventbrite sign-in belongs to several Eventbrite + organisations; choose one with `PATCH /eventbrite_connection`), `active`, or `reconnect_required` + (Eventbrite no longer accepts the sign-in, and the Organisation's admins have been emailed). + Signing in to Eventbrite needs a browser, so connecting and reconnecting happen on the + Connect > Eventbrite page in Makerble, given as `page_url`. The Eventbrite token is never returned. + operationId: getEventbriteConnection + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + responses: + "200": + description: The connection, or `status` `not_connected` + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteConnection' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + + patch: + tags: [Eventbrite] + summary: Choose the Eventbrite organisation + description: | + While `status` is `choosing_organisation`, chooses which of `available_organizations` the + connection uses. The connection becomes `active`. + operationId: chooseEventbriteOrganization + security: [{tokenAuth: []}] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [charity_id, eventbrite_connection] + properties: + charity_id: + type: integer + eventbrite_connection: + type: object + required: [eventbrite_organization_id] + properties: + eventbrite_organization_id: + type: string + example: + charity_id: 913 + eventbrite_connection: + eventbrite_organization_id: "2" + responses: + "200": + description: The connection, now active + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteConnection' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntity' + + delete: + tags: [Eventbrite] + summary: Disconnect Eventbrite + description: | + Makerble stops bringing in changes from Eventbrite. Events, Contacts and Stories already brought + in stay, with their links to Eventbrite. Succeeds again when already disconnected. + operationId: disconnectEventbrite + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + responses: + "204": + description: Disconnected + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + + /eventbrite_connection/test: + post: + tags: [Eventbrite] + summary: Test the Eventbrite connection + description: | + Checks with Eventbrite that the sign-in still works. `test_succeeded` says whether it did. A + revoked sign-in moves `status` to `reconnect_required`. + operationId: testEventbriteConnection + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + responses: + "200": + description: The connection, with `test_succeeded` + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteConnection' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + /webhook_endpoints: get: tags: [Webhooks] @@ -19137,6 +19275,82 @@ components: type: boolean description: false pauses the endpoint; true resumes it + EventbriteConnection: + type: object + properties: + charity_id: + type: integer + status: + type: string + enum: [not_connected, choosing_organisation, active, reconnect_required] + connected: + type: boolean + description: True when `status` is `active` + available: + type: boolean + description: False when the Eventbrite integration isn't set up on this Makerble site + page_url: + type: string + format: uri + description: The Connect > Eventbrite page, where an admin signs in to Eventbrite + test_succeeded: + type: boolean + description: Only on `POST /eventbrite_connection/test` + eventbrite_organization: + type: object + nullable: true + properties: + id: + type: string + name: + type: string + available_organizations: + type: array + description: Only while `status` is `choosing_organisation` + items: + type: object + properties: + id: + type: string + name: + type: string + connected_by: + type: object + nullable: true + properties: + id: + type: integer + name: + type: string + last_checked_at: + type: string + format: date-time + nullable: true + last_error: + type: string + nullable: true + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + example: + charity_id: 913 + status: active + connected: true + available: true + page_url: "https://app.makerble.com/charities/hope-trust/eventbrite" + eventbrite_organization: + id: "555" + name: "Hope Trust Events" + connected_by: + id: 42 + name: "Sam Patel" + last_checked_at: "2026-11-04T09:15:00Z" + last_error: null + created_at: "2026-11-04T09:10:00Z" + updated_at: "2026-11-04T09:15:00Z" WebhookEndpoint: type: object properties: diff --git a/server.js b/server.js index e5e83e9..0da5e30 100644 --- a/server.js +++ b/server.js @@ -970,6 +970,7 @@ function buildDocsPage() { + +
+
Integrations
+

Eventbrite

+
+

An Organisation can connect Makerble to its Eventbrite account to bring Eventbrite events, ticket holders and check-ins into Makerble as Events, Contacts and attendance Stories. Only the Organisation's admins can see or change the connection; anyone else gets 403, and someone outside the Organisation 404.

+

Signing in to Eventbrite needs a browser, so an admin connects (and reconnects) on the Connect > Eventbrite page in Makerble, returned as page_url. The API reports the connection's status: not_connected, choosing_organisation (the sign-in belongs to several Eventbrite organisations; choose one from available_organizations), active, or reconnect_required (Eventbrite no longer accepts the sign-in; the admins are emailed). The Eventbrite token is never returned.

+
+
+ ${endpointCard("GET", "/eventbrite_connection", "Get the Organisation's Eventbrite connection", true, [ + { name: "charity_id", type: "integer", required: true, desc: "The Organisation ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "The connection, or status not_connected, with page_url" }, + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin" }, + { code: "404", cls: "response-4xx", desc: "Not in this Organisation" } + ])} + ${endpointCard("PATCH", "/eventbrite_connection", "Choose the Eventbrite organisation", true, [ + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" }, + { name: "eventbrite_connection[eventbrite_organization_id]", in: "body", type: "string", required: true, desc: "An id from available_organizations" } + ], [ + { code: "200", cls: "response-2xx", desc: "The connection, now active" }, + { code: "404", cls: "response-4xx", desc: "Eventbrite isn't connected for this Organisation" }, + { code: "422", cls: "response-4xx", desc: "Not one of available_organizations" } + ])} + ${endpointCard("POST", "/eventbrite_connection/test", "Test the Eventbrite connection", true, [ + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "The connection with test_succeeded; a revoked sign-in becomes reconnect_required" }, + { code: "404", cls: "response-4xx", desc: "Eventbrite isn't connected for this Organisation" } + ])} + ${endpointCard("DELETE", "/eventbrite_connection", "Disconnect Eventbrite", true, [ + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" } + ], [ + { code: "204", cls: "response-2xx", desc: "Disconnected; records already brought in from Eventbrite stay" } + ])} +
+
+
Billing
From f302003285f61a7eeae7c51a25c3dc0f0b3ae07d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 11:34:52 +0000 Subject: [PATCH 2/3] Document the Eventbrite sync, settings, events and mapping endpoints CP-9013 PRs 3-6: POST sync, GET sync_log, PATCH settings, GET/PUT events, GET/PUT mappings/{object_type} and POST refresh_questions, with their schemas, endpoint cards and a summary of what comes in. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xodTwsfAtwUgwkAT9S --- openapi.yaml | 461 +++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 56 +++++++ 2 files changed, 517 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index c48609b..174941c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12862,6 +12862,312 @@ paths: "404": $ref: '#/components/responses/NotFound' + /eventbrite_connection/sync: + post: + tags: [Eventbrite] + summary: Sync with Eventbrite now + description: | + Queues a full catch-up with the Organisation's Eventbrite account, instead of waiting for the one + every 3 hours (changes normally arrive within seconds by webhook). `syncing` is true until it has run; + see `GET /eventbrite_connection/sync_log` for what came in. + operationId: syncEventbriteNow + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + responses: + "202": + description: Queued + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteConnection' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + + /eventbrite_connection/sync_log: + get: + tags: [Eventbrite] + summary: List the Eventbrite sync log + description: | + What Makerble brought in from Eventbrite, updated, skipped or removed, and why, newest first, kept for + 90 days. `needs_review` means a ticket holder's email matched existing Contacts unclearly: a new Contact + was made and the possible duplicates are on the Suggested Merges list (source `eventbrite`). + operationId: listEventbriteSyncLog + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: Paginated sync log + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEventbriteSyncLog' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + + /eventbrite_connection/settings: + patch: + tags: [Eventbrite] + summary: Choose what to bring in from Eventbrite + description: | + The Workspace (`project_id`) and Event format (`event_category_id`, one of the Workspace's) new Events go + into; `import_mode` `all_upcoming` (every upcoming Eventbrite event, new ones included) or `selected` + (only picked events); the Workspace (`contact_project_id`, or each Event's Workspace when blank) and + Contact type (`beneficiary_category_id`) new Contacts get; and the engagement tracker (`change_id`) and + Story Category (`story_category_id`) check-ins are recorded with. Send only the settings to change. + Saving starts a sync. + operationId: updateEventbriteSettings + security: [{tokenAuth: []}] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [charity_id, eventbrite_connection] + properties: + charity_id: + type: integer + eventbrite_connection: + $ref: '#/components/schemas/EventbriteSettings' + example: + charity_id: 913 + eventbrite_connection: + project_id: 120 + event_category_id: 44 + import_mode: all_upcoming + change_id: 3021 + story_category_id: 812 + responses: + "200": + description: The connection with its new settings + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteConnection' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntity' + + /eventbrite_connection/events: + get: + tags: [Eventbrite] + summary: List the Eventbrite events to pick from + description: | + The upcoming events in the connected Eventbrite organisation, with whether each is (or would be) + brought in, and the Makerble Event it came in as. Drafts and cancelled events are listed but not + selected unless picked. + operationId: listEventbriteEvents + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + responses: + "200": + description: The Eventbrite events + content: + application/json: + schema: + type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/EventbriteEventChoice' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + "502": + description: Eventbrite couldn't list the events + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + tags: [Eventbrite] + summary: Pick the Eventbrite events to bring in + description: Switches `import_mode` to `selected` and brings in only these Eventbrite events. + operationId: chooseEventbriteEvents + security: [{tokenAuth: []}] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [charity_id, eventbrite_event_ids] + properties: + charity_id: + type: integer + eventbrite_event_ids: + type: array + items: + type: string + example: + charity_id: 913 + eventbrite_event_ids: ["750011223344"] + responses: + "200": + description: The connection, with the picked events in settings + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteConnection' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + + /eventbrite_connection/mappings/{object_type}: + parameters: + - name: object_type + in: path + required: true + schema: + type: string + enum: [event, attendee] + description: "`event` for Eventbrite events onto Makerble Events; `attendee` for ticket holders onto Contacts" + get: + tags: [Eventbrite] + summary: Get an Eventbrite field mapping + description: | + Which Makerble field each Eventbrite field is copied into. Defaults are filled in on first use. For + `attendee`, order form questions appear as `answer:` fields once Eventbrite has been read + (see `POST /eventbrite_connection/refresh_questions`). + operationId: getEventbriteFieldMapping + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + responses: + "200": + description: The mapping, with the fields each Eventbrite field can go into + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteFieldMapping' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + + put: + tags: [Eventbrite] + summary: Replace an Eventbrite field mapping + description: | + Only compatible types can be paired, each field can be in only one pair, and a pair can be paused. + Eventbrite fields left out are not copied. Event fields replace the Makerble value; Contact fields + only fill in blanks. + operationId: setEventbriteFieldMapping + security: [{tokenAuth: []}] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [charity_id, mappings] + properties: + charity_id: + type: integer + mappings: + type: array + items: + $ref: '#/components/schemas/EventbriteFieldPair' + example: + charity_id: 913 + mappings: + - eventbrite_field: name + makerble_field: name + - eventbrite_field: venue + makerble_field: location + paused: true + responses: + "200": + description: The mapping, with the fields each Eventbrite field can go into + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteFieldMapping' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntity' + + /eventbrite_connection/refresh_questions: + post: + tags: [Eventbrite] + summary: Re-read the order form questions from Eventbrite + description: Reads the questions on the order forms of recent events brought in, and returns the ticket holder mapping. + operationId: refreshEventbriteQuestions + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: true + schema: + type: integer + description: The Organisation (Charity) ID + responses: + "200": + description: The mapping, with the fields each Eventbrite field can go into + content: + application/json: + schema: + $ref: '#/components/schemas/EventbriteFieldMapping' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + /webhook_endpoints: get: tags: [Webhooks] @@ -19667,6 +19973,148 @@ components: type: boolean description: false pauses the endpoint; true resumes it + EventbriteSettings: + type: object + properties: + project_id: + type: integer + nullable: true + event_category_id: + type: integer + nullable: true + import_mode: + type: string + enum: [all_upcoming, selected] + selected_event_ids: + type: array + readOnly: true + items: + type: string + contact_project_id: + type: integer + nullable: true + beneficiary_category_id: + type: integer + nullable: true + change_id: + type: integer + nullable: true + story_category_id: + type: integer + nullable: true + EventbriteEventChoice: + type: object + properties: + id: + type: string + name: + type: string + start: + type: string + description: Local start time on Eventbrite + status: + type: string + enum: [live, started, ended, canceled, draft] + url: + type: string + selected: + type: boolean + makerble_event_id: + type: integer + nullable: true + EventbriteFieldPair: + type: object + required: [eventbrite_field, makerble_field] + properties: + eventbrite_field: + type: string + makerble_field: + type: string + description: A built-in field, `custom_field:` or (Contacts) `dropdown:` + paused: + type: boolean + EventbriteFieldMapping: + type: object + properties: + object_type: + type: string + mappings: + type: array + items: + $ref: '#/components/schemas/EventbriteFieldPair' + eventbrite_fields: + type: array + items: + type: object + properties: + key: + type: string + label: + type: string + type: + type: string + compatible_makerble_fields: + type: array + items: + type: string + makerble_fields: + type: array + items: + type: object + properties: + key: + type: string + label: + type: string + type: + type: string + PaginatedEventbriteSyncLog: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + type: object + properties: + id: + type: integer + outcome: + type: string + enum: [imported, updated, skipped, removed, needs_review, error] + object_type: + type: string + enum: [connection, event, attendee, order, check_in] + message: + type: string + eventbrite_id: + type: string + nullable: true + eventbrite_url: + type: string + nullable: true + record: + type: object + nullable: true + properties: + type: + type: string + enum: [Contact, Event, Story] + id: + type: integer + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time EventbriteConnection: type: object properties: @@ -19718,9 +20166,22 @@ components: type: string format: date-time nullable: true + last_synced_at: + type: string + format: date-time + nullable: true + syncing: + type: boolean + description: A sync is queued or running last_error: type: string nullable: true + settings: + $ref: '#/components/schemas/EventbriteSettings' + check_in_problem: + type: string + nullable: true + description: Why check-ins can't be recorded yet; they wait until it is put right created_at: type: string format: date-time diff --git a/server.js b/server.js index 6b08c27..dbe26ba 100644 --- a/server.js +++ b/server.js @@ -3786,6 +3786,7 @@ function buildDocsPage() {

Eventbrite

An Organisation can connect Makerble to its Eventbrite account to bring Eventbrite events, ticket holders and check-ins into Makerble as Events, Contacts and attendance Stories. Only the Organisation's admins can see or change the connection; anyone else gets 403, and someone outside the Organisation 404.

+

Once connected, Eventbrite events come in as Events (Eventbrite wins for mapped fields; a cancelled event is flagged, never deleted), ticket holders as Contacts and guests (matched by email, only blank fields filled in; unclear matches go on the Suggested Merges list), and check-ins as one attendance Story per ticket holder. Changes arrive by webhook within seconds, with a catch-up every 3 hours. See the sync log for what came in and why.

Signing in to Eventbrite needs a browser, so an admin connects (and reconnects) on the Connect > Eventbrite page in Makerble, returned as page_url. The API reports the connection's status: not_connected, choosing_organisation (the sign-in belongs to several Eventbrite organisations; choose one from available_organizations), active, or reconnect_required (Eventbrite no longer accepts the sign-in; the admins are emailed). The Eventbrite token is never returned.

@@ -3810,6 +3811,61 @@ function buildDocsPage() { { code: "200", cls: "response-2xx", desc: "The connection with test_succeeded; a revoked sign-in becomes reconnect_required" }, { code: "404", cls: "response-4xx", desc: "Eventbrite isn't connected for this Organisation" } ])} + ${endpointCard("POST", "/eventbrite_connection/sync", "Sync with Eventbrite now", true, [ + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" } + ], [ + { code: "202", cls: "response-2xx", desc: "Queued; syncing is true until it has run" }, + { code: "404", cls: "response-4xx", desc: "Eventbrite isn't connected for this Organisation" } + ])} + ${endpointCard("GET", "/eventbrite_connection/sync_log", "List the Eventbrite sync log", true, [ + { name: "charity_id", type: "integer", required: true, desc: "The Organisation ID" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { 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: what came in, was skipped or removed, and why, newest first" } + ])} + ${endpointCard("PATCH", "/eventbrite_connection/settings", "Choose what to bring in from Eventbrite", true, [ + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" }, + { name: "eventbrite_connection[project_id] / [event_category_id]", in: "body", type: "integer", required: false, desc: "Workspace and Event format for new Events" }, + { name: "eventbrite_connection[import_mode]", in: "body", type: "string", required: false, desc: "all_upcoming or selected" }, + { name: "eventbrite_connection[contact_project_id] / [beneficiary_category_id]", in: "body", type: "integer", required: false, desc: "Workspace and Contact type for new Contacts" }, + { name: "eventbrite_connection[change_id] / [story_category_id]", in: "body", type: "integer", required: false, desc: "Engagement tracker and Story Category for check-ins" } + ], [ + { code: "200", cls: "response-2xx", desc: "The connection with its settings; a sync starts" }, + { code: "422", cls: "response-4xx", desc: "E.g. the Event format isn't one of the Workspace's" } + ])} + ${endpointCard("GET", "/eventbrite_connection/events", "List the Eventbrite events to pick from", true, [ + { name: "charity_id", type: "integer", required: true, desc: "The Organisation ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "Upcoming Eventbrite events, with selected and makerble_event_id" }, + { code: "502", cls: "response-4xx", desc: "Eventbrite couldn't list them" } + ])} + ${endpointCard("PUT", "/eventbrite_connection/events", "Pick the Eventbrite events to bring in", true, [ + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" }, + { name: "eventbrite_event_ids", in: "body", type: "array", required: true, desc: "Eventbrite event IDs" } + ], [ + { code: "200", cls: "response-2xx", desc: "import_mode becomes selected" } + ])} + ${endpointCard("GET", "/eventbrite_connection/mappings/{object_type}", "Get an Eventbrite field mapping", true, [ + { name: "object_type", in: "path", type: "string", required: true, desc: "event or attendee" }, + { name: "charity_id", type: "integer", required: true, desc: "The Organisation ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "Pairs, plus the fields each Eventbrite field can go into" } + ])} + ${endpointCard("PUT", "/eventbrite_connection/mappings/{object_type}", "Replace an Eventbrite field mapping", true, [ + { name: "object_type", in: "path", type: "string", required: true, desc: "event or attendee" }, + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" }, + { name: "mappings", in: "body", type: "array", required: true, desc: "[{ eventbrite_field, makerble_field, paused }]" } + ], [ + { code: "200", cls: "response-2xx", desc: "The saved mapping" }, + { code: "422", cls: "response-4xx", desc: "Incompatible types, or a field in two pairs" } + ])} + ${endpointCard("POST", "/eventbrite_connection/refresh_questions", "Re-read the order form questions", true, [ + { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "The ticket holder mapping, with the questions as answer: fields" } + ])} ${endpointCard("DELETE", "/eventbrite_connection", "Disconnect Eventbrite", true, [ { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" } ], [ From b91a8666bc816e7c177741bc44e5d535f0ff3173 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 15:01:04 +0000 Subject: [PATCH 3/3] Describe the Eventbrite settings with their new names and Workspace rules CP-9013 amends: Contact Bio Form and Event attendance survey, which must be the Workspace's; picked events come in even as drafts. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xodTwsfAtwUgwkAT9S --- openapi.yaml | 9 +++++---- server.js | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 174941c..67424a9 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12934,10 +12934,11 @@ paths: description: | The Workspace (`project_id`) and Event format (`event_category_id`, one of the Workspace's) new Events go into; `import_mode` `all_upcoming` (every upcoming Eventbrite event, new ones included) or `selected` - (only picked events); the Workspace (`contact_project_id`, or each Event's Workspace when blank) and - Contact type (`beneficiary_category_id`) new Contacts get; and the engagement tracker (`change_id`) and - Story Category (`story_category_id`) check-ins are recorded with. Send only the settings to change. - Saving starts a sync. + (only picked events, drafts included); the Workspace (`contact_project_id`, or each Event's Workspace when + blank) and Contact Bio Form (`beneficiary_category_id`, one the Workspace uses for creating Contacts) new + Contacts get; and the engagement tracker (`change_id`) and Event attendance survey (`story_category_id`, a + survey running on the Workspace for new Events) check-ins are recorded with. Send only the settings to + change. Saving starts a sync. Nothing comes in until `project_id` and `event_category_id` are set. operationId: updateEventbriteSettings security: [{tokenAuth: []}] requestBody: diff --git a/server.js b/server.js index dbe26ba..894abee 100644 --- a/server.js +++ b/server.js @@ -3829,8 +3829,8 @@ function buildDocsPage() { { name: "charity_id", in: "body", type: "integer", required: true, desc: "The Organisation ID" }, { name: "eventbrite_connection[project_id] / [event_category_id]", in: "body", type: "integer", required: false, desc: "Workspace and Event format for new Events" }, { name: "eventbrite_connection[import_mode]", in: "body", type: "string", required: false, desc: "all_upcoming or selected" }, - { name: "eventbrite_connection[contact_project_id] / [beneficiary_category_id]", in: "body", type: "integer", required: false, desc: "Workspace and Contact type for new Contacts" }, - { name: "eventbrite_connection[change_id] / [story_category_id]", in: "body", type: "integer", required: false, desc: "Engagement tracker and Story Category for check-ins" } + { name: "eventbrite_connection[contact_project_id] / [beneficiary_category_id]", in: "body", type: "integer", required: false, desc: "Workspace and Contact Bio Form (one the Workspace creates Contacts with) for new Contacts" }, + { name: "eventbrite_connection[change_id] / [story_category_id]", in: "body", type: "integer", required: false, desc: "Engagement tracker and Event attendance survey (running on the Workspace) for check-ins" } ], [ { code: "200", cls: "response-2xx", desc: "The connection with its settings; a sync starts" }, { code: "422", cls: "response-4xx", desc: "E.g. the Event format isn't one of the Workspace's" }