diff --git a/openapi.yaml b/openapi.yaml index 424f2bc..cdff17f 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -30,6 +30,21 @@ info: ``` A key belongs to one Organisation and acts as the colleague chosen when it was created: it can see and do only what they can, in that Organisation only. It can call the same endpoints as a connected app (OAuth), and gets `403` with `not_available_to_connected_apps` from any other. If the colleague leaves the Organisation, or the key is revoked, requests get `401`. Calls made with an Organisation's API keys count towards its monthly API usage. + ## Connecting an app with OAuth 2.0 + Apps published for other people to use, such as marketplace connectors, connect with OAuth 2.0 instead of asking for a password. The user signs in to Makerble, chooses which of their organisations (Charities) the app may use, and selects **Allow**. The app then calls the API as that user, limited to that organisation. + + 1. **Get a client ID and secret.** Makerble registers client applications; email [api-key-request@makerble.com](mailto:api-key-request@makerble.com) with your app's name and its exact redirect URI (https only). There is no self-service registration. + 2. **Send the user to** `GET https://makerble.com/oauth/authorize?response_type=code&client_id=…&redirect_uri=…&scope=api&state=…`. Makerble shows the consent screen, then redirects to your redirect URI with `?code=…&state=…`, or `?error=access_denied` if the user cancels. A redirect URI that isn't registered for your app is refused without redirecting. + 3. **Exchange the code** at `POST https://makerble.com/oauth/token` with `grant_type=authorization_code`. The code works once and expires after 10 minutes. + 4. **Call the API** with `Authorization: Bearer `. Don't send `X-User-Email`/`X-User-Token` as well. Tokens are only read from the `Authorization` header. + 5. **Refresh** at `POST https://makerble.com/oauth/token` with `grant_type=refresh_token`. Access tokens last 1 hour. Refresh tokens don't expire, but each refresh returns a new refresh token: always store the latest one. + + | Situation | Response | + |---|---| + | Token expired, revoked, or the user is no longer in the connected organisation | `401 {"error":"invalid_token"}` | + | Endpoint not yet available to connected apps | `403 {"error":"not_available_to_connected_apps"}` | + + A connected app sees only the organisation the user chose, with that user's permissions there. It can call the same endpoints as an Organisation API key (see Organisation API keys above), and gets `403` with `not_available_to_connected_apps` from any other. Users and Organisation Admins can disconnect an app at any time from **Settings → Connected Apps**, and it stops working straight away. The scope is always `api`. ## Creating Users via the API `POST /users` requires a separate API Key (`auth_code`). Request one at [api-key-request@makerble.com](mailto:api-key-request@makerble.com). @@ -213,6 +228,10 @@ tags: description: Contact Bio Forms — field schemas for creating and editing Beneficiary records - name: Beneficiary Types description: The four contact types — Person, Organisation, Animal, Object + - name: Audio Notes + description: | + AI AudioNotes (CaseNotes): audio recordings of a conversation with a Contact (Beneficiary) or + of an Event session, which Makerble transcribes and summarises into a draft survey response. - name: Cases description: Cases linked to a Beneficiary and a Project - name: Stories @@ -318,6 +337,10 @@ tags: ever added to a Project through one of its Outcomes. - name: Event Formats description: Event Categories — templates for an organisation's events (e.g. Workshops, Classes, Meetings) + - name: Event Catalogues + description: Public, bookable lists of an organisation's upcoming events, and who can see them on the Contacts' Portal + - name: Contacts' Portal + description: Each Contact's own link to the Contacts' Portal, where they book onto events from Event Catalogues - name: Formula Trackers description: | Metrics worked out from other trackers with + − × ÷, numbers and brackets, e.g. Referrals @@ -359,6 +382,8 @@ tags: 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. + - name: Health + description: Whether the service is up, and which build of it is running paths: @@ -414,6 +439,105 @@ paths: error: invitation-pending message: "You haven't set a password yet. Open your invitation email to set one." + /oauth/token: + servers: + - url: https://makerble.com + description: Production (OAuth endpoints are not under /api/v2) + - url: https://staging.makerble.com + description: Staging + post: + tags: [Authentication] + summary: Exchange an authorisation code, or refresh an access token (OAuth 2.0) + description: | + For apps connected with OAuth 2.0. Exchange the `code` from the consent screen for an + access token and refresh token, or swap a refresh token for a new pair. Authenticate + the app with `client_id` and `client_secret` in the body, or with HTTP Basic auth. + Access tokens last 1 hour (`expires_in: 3600`). Each refresh returns a new refresh + token; store the latest one. + operationId: createOauthToken + requestBody: + required: true + content: + application/x-www-form-urlencoded: + schema: + type: object + required: [grant_type, client_id, client_secret] + properties: + grant_type: + type: string + enum: [authorization_code, refresh_token] + code: + type: string + description: Required for `authorization_code`. Works once; expires after 10 minutes. + redirect_uri: + type: string + description: Required for `authorization_code`; must match the one used on `/oauth/authorize`. + refresh_token: + type: string + description: Required for `refresh_token`. + client_id: + type: string + client_secret: + type: string + example: + grant_type: authorization_code + code: "Zx1...code" + redirect_uri: https://global.consent.azure-apim.net/redirect + client_id: "your-client-id" + client_secret: "your-client-secret" + responses: + "200": + description: Tokens issued + content: + application/json: + example: + access_token: "kq3...access" + token_type: Bearer + expires_in: 3600 + refresh_token: "9Lm...refresh" + scope: api + created_at: 1791726153 + "400": + description: Invalid, expired or already-used code or refresh token (`{"error":"invalid_grant"}`) + "401": + description: Unknown client or wrong client secret (`{"error":"invalid_client"}`) + + /oauth/revoke: + servers: + - url: https://makerble.com + description: Production (OAuth endpoints are not under /api/v2) + - url: https://staging.makerble.com + description: Staging + post: + tags: [Authentication] + summary: Revoke an access or refresh token (OAuth 2.0) + description: | + For apps connected with OAuth 2.0, e.g. when the user disconnects from inside your app. + Revoking either token of a pair stops both working. Always returns 200, even for an + unknown token. + operationId: revokeOauthToken + requestBody: + required: true + content: + application/x-www-form-urlencoded: + schema: + type: object + required: [token, client_id, client_secret] + properties: + token: + type: string + client_id: + type: string + client_secret: + type: string + example: + token: "9Lm...refresh" + client_id: "your-client-id" + client_secret: "your-client-secret" + responses: + "200": + description: Token revoked (or already invalid) + /users: get: tags: [Users] @@ -3754,7 +3878,16 @@ paths: post: tags: [Projects] summary: Add users to a Project - description: Grants roles on a Project. A user can hold Editor, Reporter, and Observer simultaneously. + description: | + Adds users to Projects' teams, as the Project's **Add Users** page does: as Project Managers (`editor_ids`), + Changemakers (`reporter_ids`) or Analysts (`observer_ids`). A user can hold more than one role. + + You must be a Project Manager of every listed Project, or an Organisation Admin of its Organisation. The users + must already be colleagues in the Project's Organisation, unless the Organisation's preference "Allow Project + Managers to add Makerble Users outside the organisation to their project" is on. + + The request is all or nothing: if any Project isn't found (404), isn't yours to manage (403) or any user can't + be added (422), nobody is added to any Project. operationId: addColleague security: [{tokenAuth: []}] requestBody: @@ -3794,6 +3927,10 @@ paths: description: Users added "401": $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/AddColleagueForbidden' + "404": + $ref: '#/components/responses/NotFound' "422": $ref: '#/components/responses/UnprocessableEntity' @@ -4738,6 +4875,238 @@ paths: $ref: '#/components/responses/Unauthorized' "404": $ref: '#/components/responses/NotFound' + /beneficiaries/bulk_actions/{id}: + get: + tags: [Beneficiaries] + summary: Get the progress of a bulk action on Contacts + description: | + The progress of any change to many Contacts at once, such as adding everyone matching + `filter_data` as an event's guests (`POST /events/{id}/guests`). Only the user who started + it can see it. `action_name` says which change it is (e.g. `add_to_event`, + `move_through_projects`). `status` is `pending`, `running`, `completed`, `failed` or + `undone`; `processed_count` of `total_count` Contacts have been reached so far, and `summary` + is filled in once it has finished. + operationId: getBeneficiaryBulkAction + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: { type: integer } + responses: + "200": + description: The bulk action's progress + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/BeneficiaryBulkAction' + - type: object + properties: + action_name: + type: string + description: Which change this is, e.g. add_to_event or move_through_projects + example: + id: 52 + status: running + total_count: 812 + processed_count: 240 + changed_count: 231 + skip_counts: { not_in_project: 9 } + background: true + summary: null + action_name: add_to_event + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + /beneficiaries/bulk_checklists: + post: + tags: [Beneficiaries] + summary: Start a Checklist for many Contacts at once + description: | + Starts a Checklist for many Contacts (Beneficiaries) in one request. This is **Add to › A + Checklist** for the Contacts selected on the Manage Contacts page. Each Contact is started + the same way as Add a Checklist on their profile, and actions their records already prove + done are marked done straight away. + + **Which Checklist.** `checklist_id` and `project_id`: a Checklist the project lets colleagues + add by hand, through that project. Organisation Editors and Reporters may use any open + project; other users only projects they are an Editor or Reporter of. Anything else is + refused with `422`. + + **Which Contacts.** Either `beneficiary_ids` (at most 500), or everyone matching + `filter_data` (the Manage Contacts filters) leaving out `excluded_ids`. With `filter_data`, + `project_id` also narrows the filters to Contacts in that project, since anyone outside it + would be skipped anyway. + + **Skipped Contacts** are counted in `skip_counts`: `headline_only` (the user only has + Headline Only Access to them), `not_in_project` (they aren't in the project), `not_allowed` + (the Checklist can't be started for them). A Contact who already has the Checklist keeps + their progress and isn't counted as changed. + + Up to 50 Contacts are started straight away (`200`); more run in the background (`202`), and + `GET /beneficiaries/bulk_actions/{id}` reports the progress. `charity_id` may be left out when + the user belongs to one organisation. + operationId: startChecklistForBeneficiaries + security: [{tokenAuth: []}] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [checklist_id, project_id] + properties: + charity_id: + type: integer + description: The organisation whose Contacts to start it for + checklist_id: + type: integer + description: The Checklist to start + project_id: + type: integer + description: The project it is started through (one that lets colleagues add it by hand) + beneficiary_ids: + type: array + maxItems: 500 + items: { type: integer } + description: The Contacts, at most 500. Leave out to use filter_data instead. + filter_data: + type: object + additionalProperties: true + description: Manage Contacts filters selecting the Contacts, used when beneficiary_ids is left out + excluded_ids: + type: array + items: { type: integer } + description: Contacts matching the filters to leave out + example: + charity_id: 12 + checklist_id: 31 + project_id: 572 + beneficiary_ids: [160498, 160499, 160500] + responses: + "200": + description: The Checklist was started straight away (50 Contacts or fewer) + content: + application/json: + schema: { $ref: '#/components/schemas/BeneficiaryBulkAction' } + example: + id: 61 + status: completed + total_count: 10 + processed_count: 10 + changed_count: 7 + skip_counts: { not_in_project: 3 } + background: false + summary: "7 contacts changed. 3 skipped: 3 because they aren't in Youth Mentoring." + "202": + description: More than 50 Contacts, so it runs in the background. Poll GET /beneficiaries/bulk_actions/{id}. + content: + application/json: + schema: { $ref: '#/components/schemas/BeneficiaryBulkAction' } + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + /beneficiaries/bulk_relationships: + post: + tags: [Beneficiaries] + summary: Link many Contacts to one Contact with the same relationship + description: | + Gives many Contacts (Beneficiaries) the same relationship with one Contact, in one request. + This is **Add to › A relationship** for the Contacts selected on the Manage Contacts page, + e.g. making Oakfield School the School of every selected pupil. Each relationship is added + the same way as Add a Relationship on a Contact's profile, so it appears on both Contacts' + History. + + **Which relationship.** `relationship_category_id` is one of the organisation's + Relationship Categories (`GET /relationship_categories`), which has two sides, e.g. School & + Pupil. `related_contact_id` is the one Contact everyone is linked to, and + `related_contact_is` says which side that Contact takes: `parent` (the first title, School) + or `child` (the second, Pupil). Each selected Contact takes the other side. + + **Which Contacts.** Either `beneficiary_ids` (at most 500), or everyone matching + `filter_data` (the Manage Contacts filters) leaving out `excluded_ids`. + + **Skipped Contacts** are counted in `skip_counts`: `headline_only` (the user only has + Headline Only Access to them), `already_linked` (they already have that relationship with + that Contact), `same_contact` (the chosen Contact itself), `not_allowed` (the relationship + couldn't be saved for them). + + Up to 50 Contacts are linked straight away (`200`); more run in the background (`202`), and + `GET /beneficiaries/bulk_actions/{id}` reports the progress. `charity_id` may be left out when + the user belongs to one organisation. + operationId: linkBeneficiariesToContact + security: [{tokenAuth: []}] + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [relationship_category_id, related_contact_id, related_contact_is] + properties: + charity_id: + type: integer + description: The organisation whose Contacts to link + relationship_category_id: + type: integer + description: One of the organisation's Relationship Categories + related_contact_id: + type: integer + description: The Contact every selected Contact is linked to + related_contact_is: + type: string + enum: [parent, child] + description: Which side of the category the related Contact takes; the selected Contacts take the other + beneficiary_ids: + type: array + maxItems: 500 + items: { type: integer } + description: The Contacts to link, at most 500. Leave out to use filter_data instead. + filter_data: + type: object + additionalProperties: true + description: Manage Contacts filters selecting the Contacts, used when beneficiary_ids is left out + excluded_ids: + type: array + items: { type: integer } + description: Contacts matching the filters to leave out + example: + charity_id: 12 + relationship_category_id: 8 + related_contact_id: 160400 + related_contact_is: parent + beneficiary_ids: [160498, 160499, 160500] + responses: + "200": + description: The Contacts were linked straight away (50 or fewer) + content: + application/json: + schema: { $ref: '#/components/schemas/BeneficiaryBulkAction' } + example: + id: 71 + status: completed + total_count: 5 + processed_count: 5 + changed_count: 5 + skip_counts: {} + background: false + summary: "5 contacts changed." + "202": + description: More than 50 Contacts, so they are linked in the background. Poll GET /beneficiaries/bulk_actions/{id}. + content: + application/json: + schema: { $ref: '#/components/schemas/BeneficiaryBulkAction' } + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' /project_beneficiaries: get: tags: [Beneficiaries] @@ -6225,16 +6594,20 @@ paths: parameters: - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' - - name: story_category_id + - name: story_category_ids in: query schema: - type: integer - description: Filter by a specific Survey - - name: "project_ids[]" + type: string + description: >- + Filter by one or more Surveys (Story Categories). Accepts a JSON array (`[1,2]`), a repeated + array parameter (`story_category_ids[]=1&story_category_ids[]=2`), a comma-separated list (`1,2`) + or a single ID. Only Surveys the authenticated user can access are returned; any others are + ignored. `story_category_id` is also accepted as an alias. + - name: project_ids in: query schema: - type: integer - description: Filter by Project ID (repeat for multiple) + type: string + description: Filter by one or more Project IDs. Accepts the same formats as `story_category_ids`. - name: start_date in: query schema: @@ -7054,59 +7427,256 @@ paths: "401": $ref: '#/components/responses/Unauthorized' - /cases: + /case_notes: get: - tags: [Cases] - summary: List all Cases + tags: [Audio Notes] + summary: List Audio Notes description: | - Each Case is linked to one Beneficiary and one Project. - - Filter the Cases by their answers to Case Form questions with `custom_field_definition_hash`, as the Manage Cases page does. - Call `GET /cases/filter_fields` first for the question IDs and the shape of value each one takes (its `filter_format`): - - - `text`: text the answer contains, ignoring case, e.g. `custom_field_definition_hash[71]=theft` - - `number_range`: `[min]` and/or `[max]` - - `date_range`, `time_range`, `datetime_range`: `[from]` and/or `[to]`, both included (e.g. `2025-01-31`, `09:00`, `2025-01-31T14:00`) - - `choice_ids`: answer choice IDs, e.g. `custom_field_definition_hash[72][]=5` - - `yes_no`: `[]=yes` for ticked, `[]=no` for not ticked - - `has_files_no_files`: `[]=has_files` or `[]=no_files` - - `album_ids`: Album IDs the Case is linked to through the question - - A Case must match every question given. A question the user can't filter by is ignored. - operationId: listCases + The Audio Notes (CaseNotes) the user may see on the **Audio Notes** page, newest first: + every one in the Organisations (Charities) they are an admin (Charity Editor) of and the + Projects they are a Project Editor of, plus the ones they recorded themselves. Each is a + CaseNote (`note_type: case_note`, about one Contact) or a SessionNote + (`note_type: session_note`, about an Event). Get one to read its transcript and summary. + operationId: listCaseNotes security: [{tokenAuth: []}] parameters: + - name: charity_id + in: query + schema: + type: integer + description: Only Audio Notes in this Organisation (Charity) + - name: project_id + in: query + schema: + type: integer + description: Only Audio Notes in this Project + - name: beneficiary_id + in: query + schema: + type: integer + description: Only CaseNotes about this Contact (Beneficiary) + - name: event_id + in: query + schema: + type: integer + description: Only SessionNotes about this Event + - name: note_type + in: query + schema: + type: string + enum: [case_note, session_note] - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' - $ref: '#/components/parameters/LastSyncDatetime' - - name: custom_field_definition_hash - in: query - style: deepObject - explode: true - required: false - description: Answers to Case Form questions to filter by, keyed by question (custom field definition) ID. See the description above. - schema: - type: object - additionalProperties: true - example: - "71": theft responses: "200": - description: Paginated list of Cases + description: Paginated list of Audio Notes content: application/json: schema: - $ref: '#/components/schemas/PaginatedCases' + $ref: '#/components/schemas/PaginatedCaseNotes' "401": $ref: '#/components/responses/Unauthorized' post: - tags: [Cases] - summary: Create a Case - description: | - Creates a Case for a Beneficiary within a Project. - - Call `GET /custom_field_categories` first to discover the field definition IDs for `custom_field_categories_definition`. + tags: [Audio Notes] + summary: Attach an audio file as a new Audio Note + description: | + Creates an Audio Note (CaseNote) from an audio file, as the **New AudioNote** popup on the Audio + Notes page does. Send it as `multipart/form-data`. Makerble then transcribes and summarises it + and writes a draft survey response, the same as for a recording made in Makerble; poll + **Get an Audio Note** until `status` is `completed`. The note's `source` is `manual` and its + `platform` is `api`. + + Choose an Organisation (Charity) with AI AudioNotes turned on and one of its running Projects + the user is a member of. For a `case_note` give a Contact (Beneficiary) in that Project whom + the user may see. For a `session_note` the `event_id` is optional; it must be an Event in that + Project that the user is an Event Manager or Event Worker of (a Project or Organisation admin + may choose any of the Project's Events). The file must be MP3, M4A, MP4, WAV, WEBM, OGG, OGA, + AAC or FLAC audio, up to 200 MB. + operationId: createCaseNote + security: [{tokenAuth: []}] + requestBody: + required: true + content: + multipart/form-data: + schema: + type: object + required: [charity_id, project_id, note_type, audio_file] + properties: + charity_id: + type: integer + project_id: + type: integer + note_type: + type: string + enum: [case_note, session_note] + beneficiary_id: + type: integer + description: Required for a `case_note` + event_id: + type: integer + description: Optional, for a `session_note` + audio_file: + type: string + format: binary + example: + charity_id: 913 + project_id: 2201 + note_type: case_note + beneficiary_id: 50412 + audio_file: "(binary) session.mp3" + responses: + "201": + description: The Audio Note, queued for transcription + content: + application/json: + schema: + $ref: '#/components/schemas/CaseNoteDetail' + "401": + $ref: '#/components/responses/Unauthorized' + "422": + description: A choice was missing or not allowed, or the file is not a supported audio file + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "Choose a contact." + "503": + description: The audio file could not be stored; nothing was created + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + + /case_notes/{id}: + parameters: + - $ref: '#/components/parameters/ResourceId' + get: + tags: [Audio Notes] + summary: Get an Audio Note + description: | + One Audio Note (CaseNote) with its transcript and AI summary, if the user may see it on the + **Audio Notes** page (otherwise `404`). + operationId: getCaseNote + security: [{tokenAuth: []}] + responses: + "200": + description: The Audio Note + content: + application/json: + schema: + $ref: '#/components/schemas/CaseNoteDetail' + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + + /case_notes/{id}/recording: + parameters: + - $ref: '#/components/parameters/ResourceId' + delete: + tags: [Audio Notes] + summary: Delete an Audio Note's recording + description: | + Deletes the audio recording of an Audio Note (CaseNote), for example to meet a privacy request, + as **Delete Recording** does on the Audio Note page. The note itself is kept, with its transcript, + summary and draft or saved survey response; `has_recording` becomes false and `audio_deleted_at` + is set. This cannot be undone. Only the Organisation's admins (Charity Editors) and Makerble + System Access admins may do this (`403`), and only once the note has finished processing + (`status` is `completed` or `failed`; otherwise `422`). Deleting an already deleted recording + returns the note unchanged. `503` means the recording could not be removed from storage and + nothing was changed: try again. + operationId: deleteCaseNoteRecording + security: [{tokenAuth: []}] + responses: + "200": + description: The Audio Note, without its recording + content: + application/json: + schema: + $ref: '#/components/schemas/CaseNoteDetail' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + description: The user is not an admin of the Audio Note's Organisation + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "Only an organisation admin can delete a recording." + "404": + $ref: '#/components/responses/NotFound' + "422": + description: The Audio Note is still being processed + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "The recording can be deleted once it has been transcribed." + "503": + description: The recording could not be removed from storage; nothing was changed + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + + /cases: + get: + tags: [Cases] + summary: List all Cases + description: | + Each Case is linked to one Beneficiary and one Project. + + Filter the Cases by their answers to Case Form questions with `custom_field_definition_hash`, as the Manage Cases page does. + Call `GET /cases/filter_fields` first for the question IDs and the shape of value each one takes (its `filter_format`): + + - `text`: text the answer contains, ignoring case, e.g. `custom_field_definition_hash[71]=theft` + - `number_range`: `[min]` and/or `[max]` + - `date_range`, `time_range`, `datetime_range`: `[from]` and/or `[to]`, both included (e.g. `2025-01-31`, `09:00`, `2025-01-31T14:00`) + - `choice_ids`: answer choice IDs, e.g. `custom_field_definition_hash[72][]=5` + - `yes_no`: `[]=yes` for ticked, `[]=no` for not ticked + - `has_files_no_files`: `[]=has_files` or `[]=no_files` + - `album_ids`: Album IDs the Case is linked to through the question + + A Case must match every question given. A question the user can't filter by is ignored. + operationId: listCases + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + - name: custom_field_definition_hash + in: query + style: deepObject + explode: true + required: false + description: Answers to Case Form questions to filter by, keyed by question (custom field definition) ID. See the description above. + schema: + type: object + additionalProperties: true + example: + "71": theft + responses: + "200": + description: Paginated list of Cases + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedCases' + "401": + $ref: '#/components/responses/Unauthorized' + + post: + tags: [Cases] + summary: Create a Case + description: | + Creates a Case for a Beneficiary within a Project. + + Call `GET /custom_field_categories` first to discover the field definition IDs for `custom_field_categories_definition`. operationId: createCase security: [{tokenAuth: []}] requestBody: @@ -9156,646 +9726,1469 @@ paths: $ref: '#/components/schemas/Error' example: error: "This Event Format can't be deleted because it has 3 events. Delete or move those events first. This Event Format can't be deleted because it is added to 2 projects. Remove it from those projects first." - - /events: - get: - tags: [Events] - summary: List events - operationId: listEvents + /event_categories/{id}/projects: + post: + tags: [Event Formats] + summary: Add an Event Format to a project + operationId: addEventFormatToProject description: | - Lists the events you can see, as on the **Manage Events** page, soonest first. - Organisation Admins see every event in their organisation; other users see the events - of the projects they are an editor of and the events they are an Event Manager or Event - Worker at. - - Filter by `project_id`, `event_category_id` (Event Format), `event_type`, a - `start_date`/`end_date` range (the event's start falls between them), or - `master_event_id` to list every event in one recurring series (the master event and - its subsequent events). Pass `charity_id` to list one organisation; one you are not a - member of returns `404`. - - Filter by the answers on the events' **Event Creation Form** (the custom fields and - Dropdowns of their Event Format) with `form_field_filters`, as the "Event Creation Form - fields" section of the Filter Events panel does. Get the keys from - `GET /event_filter_fields`. Values: text the answer contains for a Text or Email Address - field; digits for a Telephone field; `yes` or `no` for a Tickbox, Attachment or - Signature field; `_from` and/or `_to` for a Number, Date (`YYYY-MM-DD`) or - Time (`HH:MM`) range, inclusive; a list of answer choice (Sub Ratio) ids for a Dropdown, - matching an event that has any of them. Every key given must match. + Adds an Event Format (Event Category in the API) to a project, so the project's events can + use it, as **Add to projects** on the Manage Event Formats page does. It also turns events + on for the project. Adding one that is already added does nothing and returns `200`. - `sort` orders the whole list, not just one page, by those fields: a `sort_key` from - `GET /event_filter_fields` and optionally `asc` (the default) or `desc`, several - separated by commas. Blank answers come last. An unknown filter or sort key returns `422`. + - Only an **Organisation Admin** of the organisation that owns the Event Format may (`403`). + - The project must be in the same organisation (`422`). An Event Format or project in an + organisation you are not a member of returns `404`. security: [{tokenAuth: []}] parameters: - - name: charity_id - in: query - required: false - schema: - type: integer - description: Only this Organisation's (Charity's) events + - $ref: '#/components/parameters/ResourceId' + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [project_id] + properties: + project_id: + type: integer + example: + project_id: 301 + responses: + "201": + description: Added + content: + application/json: + schema: + $ref: '#/components/schemas/EventFormatProject' + example: + event_category_id: 4530 + project_id: 301 + status: added + "200": + description: It was already added + content: + application/json: + schema: + $ref: '#/components/schemas/EventFormatProject' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/EventFormatAdminOnly' + "404": + $ref: '#/components/responses/NotFound' + "422": + description: The project isn't in the Event Format's organisation + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "That project isn't in the Event Format's organisation." + /event_categories/{id}/projects/{project_id}: + delete: + tags: [Event Formats] + summary: Remove an Event Format from a project + operationId: removeEventFormatFromProject + description: | + Takes an Event Format off a project, so new events in the project can't use it. Events + that already use it keep it. Same permissions as **Add an Event Format to a project**; + an Event Format that isn't added to the project returns `404`. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' - name: project_id - in: query - required: false + in: path + required: true schema: type: integer - - name: event_category_id + responses: + "200": + description: Removed + content: + application/json: + schema: + $ref: '#/components/schemas/EventFormatProject' + example: + event_category_id: 4530 + project_id: 301 + status: removed + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/EventFormatAdminOnly' + "404": + $ref: '#/components/responses/NotFound' + /event_catalogues: + get: + tags: [Event Catalogues] + summary: List an organisation's Event Catalogues + operationId: listEventCatalogues + description: | + Lists an organisation's Event Catalogues, as on the Manage Event Catalogues page. An Event + Catalogue is a public, bookable list of the organisation's upcoming events, chosen by its + filters, at its `public_url` (which can also be embedded on a website). Contacts can also + see a catalogue on their Contacts' Portal, if the project allows it (see **Get who can see + an Event Catalogue in a project**). + + Organisation Admins, Organisation Reporters and Project Managers of the organisation's + projects can list them; anyone else in the organisation gets `403`. + security: [{tokenAuth: []}] + parameters: + - name: charity_id in: query - required: false + required: true schema: type: integer - description: Only events of this Event Format (Event Category) - - name: event_type - in: query - required: false - schema: - type: string - enum: [one-off, master, subsequent] - description: "`master` is the first event of a recurring series; `subsequent` are the rest of the series" - - name: start_date - in: query - required: false - schema: - type: string - format: date - description: Only events starting on or after this date - - name: end_date - in: query - required: false - schema: - type: string - format: date - description: Only events starting on or before this date - - name: master_event_id - in: query - required: false - schema: - type: integer - description: Only the events of this recurring series - - name: form_field_filters - in: query - required: false - style: deepObject - explode: true - schema: - type: object - additionalProperties: true - example: - custom_field_12: archery - custom_field_15_from: 5 - custom_field_15_to: 10 - ratio_set_7: [31, 32] - description: Event Creation Form answers to match, keyed by the `filter_keys` of `GET /event_filter_fields`, e.g. `form_field_filters[custom_field_12]=archery&form_field_filters[ratio_set_7][]=31` - - name: sort - in: query - required: false - schema: - type: string - example: "custom_field_12 desc, ratio_set_7 asc" - description: "Sort by Event Creation Form fields: `sort_key` values from `GET /event_filter_fields`, each optionally followed by `asc` or `desc`. Default: soonest first" + description: The Organisation (Charity) - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: Paginated list of events + description: Paginated list of Event Catalogues, by name content: application/json: schema: - $ref: '#/components/schemas/PaginatedEvents' - example: - page: 1 - page_size: 1 - page_count: 1 - total_count: 1 - data: - - id: 9120 - name: "Yoga 2" - charity_id: 123 - start_datetime: "2030-01-15T14:00:00.000Z" - end_datetime: "2030-01-15T15:00:00.000Z" - timezone: "Europe/London" - location: "Main Hall" - event_type: "subsequent" - listing_enabled: false - created_at: "2026-10-01T09:00:00.000Z" - updated_at: "2026-10-01T09:00:00.000Z" - project: { id: 456, name: "Youth Club" } - event_category: { id: 4521, name: "Workshops" } - master_event_id: 9119 - guests_count: 12 - managers_count: 1 - workers_count: 2 + $ref: '#/components/schemas/PaginatedEventCatalogues' "401": $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/EventCatalogueForbidden' "404": $ref: '#/components/responses/NotFound' - "422": - $ref: '#/components/responses/UnprocessableEntityList' - post: - tags: [Events] - summary: Create an event - operationId: createEvent + tags: [Event Catalogues] + summary: Create an Event Catalogue + operationId: createEventCatalogue description: | - Creates a one-off event, or a recurring series when `recurring_schedule` and - `recurring_end_date` are given: the master event plus every subsequent event up to the - Recurring End Date, as the Create Event form does. - - Work out the ids first: list the Event Formats you can use in the project - (`GET /projects/{id}/event_categories`), then get the form for the one you choose - (`GET /projects/{id}/event_form`). Every id in the request is checked against that form. - Problems are returned together as `422`. - - Times are ISO 8601. A time without an offset is a local time in `timezone`, an IANA - time zone name that defaults to yours; daylight saving is worked out for you. - You become the Event Manager unless you give `manager_ids`. + Creates an Event Catalogue, as **New Event Catalogue** on the Manage Event Catalogues page + does. Organisation Admins and Project Managers of the organisation's projects may. - Not handled by the API: an event image, and Event Steps (project automations). - To add a Contact as a guest, use the guests endpoints. + A catalogue only ever shows events that haven't started yet, that have a Signup Page and + whose listing is turned on, and that match `filters`. With no filters it shows every such + event in the organisation. security: [{tokenAuth: []}] requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/EventCreateRequest' - examples: - recurringSeries: - summary: A weekly series with a Dropdown, a custom field and a Signup Page - value: - project_id: 456 - event_category_id: 42 - name: "Youth Club" - start_datetime: "2030-01-08T18:00" - end_datetime: "2030-01-08T20:00" - timezone: "Europe/London" - location: "Main Hall" - custom_fields: { "77": "B-114" } - dropdowns: { "3012": [88101] } - signup_page_id: 310 - guest_status_for_signup_id: 7 - capacity: - guests: fixed - max_guests: 20 - allow_signup_after_full: true - guest_status_after_full_id: 8 - confirmation_message_after_full: "We're full, but we'll let you know if a place comes up." - recurring_schedule: { frequency: weekly, interval: 1, days_of_week: [tuesday] } - recurring_end_date: "2030-03-26" + type: object + required: [charity_id, name] + properties: + charity_id: + type: integer + name: + type: string + filters: + $ref: '#/components/schemas/EventCatalogueFilters' + example: + charity_id: 123 + name: "Drop-ins" + filters: + project_ids: [301] + event_category_ids: [4530] responses: "201": - description: The event, as Get an event returns it + description: The Event Catalogue was created content: application/json: schema: - $ref: '#/components/schemas/Event' + $ref: '#/components/schemas/EventCatalogueDetail' "401": $ref: '#/components/responses/Unauthorized' "403": - $ref: '#/components/responses/ForbiddenError' + $ref: '#/components/responses/EventCatalogueForbidden' "404": $ref: '#/components/responses/NotFound' "422": $ref: '#/components/responses/UnprocessableEntityList' - - /event_filter_fields: + /event_catalogues/{id}: get: - tags: [Events] - summary: List the fields events can be filtered and sorted by - operationId: listEventFilterFields + tags: [Event Catalogues] + summary: Get an Event Catalogue + operationId: getEventCatalogue description: | - Lists the custom fields and Dropdowns used on the **Event Creation Forms** of your - organisations' Event Formats, alphabetically, as the "Event Creation Form fields" - section of the Filter Events panel on the Manage Events page lists them. Use their - `filter_keys` in the `form_field_filters` of `GET /events`, and their `sort_key` in its - `sort`. - - `data_type` is one of `text`, `email_address`, `telephone`, `number`, `date`, `time`, - `tickbox`, `file` (Attachment), `signature` or `dropdown`. A Number, Date or Time field - has two filter keys, `_from` and `_to`. A Dropdown's filter takes answer - choice ids: list them with `GET /event_filter_fields/{id}/choices`. + Reads one Event Catalogue, with `upcoming_events_count`, the number of events its public + page shows now. Same permissions as **List an organisation's Event Catalogues**; a + catalogue of an organisation you are not in returns `404`. security: [{tokenAuth: []}] parameters: - - name: charity_id - in: query - required: false - schema: - type: integer - description: Only this Organisation's (Charity's) Event Creation Forms - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/ResourceId' responses: "200": - description: Paginated list of fields + description: The Event Catalogue content: application/json: schema: - 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: - key: { type: string } - id: { type: integer, description: The custom field or Dropdown (Ratio Set) id } - name: { type: string } - data_type: { type: string } - filter_keys: { type: array, items: { type: string } } - filter_hint: { type: string } - sort_key: { type: string } + $ref: '#/components/schemas/EventCatalogueDetail' example: - page: 1 - page_size: 2 - page_count: 1 - total_count: 2 - data: - - key: ratio_set_7 - id: 7 - name: Activity - data_type: dropdown - filter_keys: [ratio_set_7] - filter_hint: A list of answer choice ids; an event matches if it has any of them - sort_key: ratio_set_7 - - key: custom_field_15 - id: 15 - name: Age - data_type: number - filter_keys: [custom_field_15_from, custom_field_15_to] - filter_hint: A number for either or both ends of the range, inclusive - sort_key: custom_field_15 + id: 77 + name: "Drop-ins" + charity_id: 123 + filters: + project_ids: [301] + public_url: "https://makerble.com/events-catalogue/Zx9s1Qk2vB7nT4pR" + created_at: "2026-10-22T12:00:00.000Z" + updated_at: "2026-10-22T12:00:00.000Z" + upcoming_events_count: 9 "401": $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/EventCatalogueForbidden' "404": $ref: '#/components/responses/NotFound' - - /event_filter_fields/{id}/choices: + patch: + tags: [Event Catalogues] + summary: Edit an Event Catalogue + operationId: updateEventCatalogue + description: | + Renames an Event Catalogue or replaces its filters. Give only what changes; `filters`, + when given, replaces them all. Its `public_url` stays the same. Same permissions as + **Create an Event Catalogue**. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + type: string + filters: + $ref: '#/components/schemas/EventCatalogueFilters' + example: + name: "Evening drop-ins" + responses: + "200": + description: The Event Catalogue was changed + content: + application/json: + schema: + $ref: '#/components/schemas/EventCatalogueDetail' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/EventCatalogueForbidden' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + /event_catalogues/{id}/projects/{project_id}/access: get: - tags: [Events] - summary: List a Dropdown's answer choices for filtering events - operationId: listEventFilterFieldChoices + tags: [Event Catalogues] + summary: Get who can see an Event Catalogue in a project + operationId: getEventCatalogueAccess description: | - Lists the answer choices (Sub Ratios) of a Dropdown (Ratio Set) from - `GET /event_filter_fields`, alphabetically, as the Filter Events panel's typeahead - offers them. Pass their ids in `form_field_filters[ratio_set_]` of `GET /events`. - A Dropdown that isn't on an Event Creation Form of your organisations returns `404`. + Says which of a project's Contacts can see an Event Catalogue on their Contacts' Portal, as + the project's Event Catalogues page shows it: `every_enrolled` (every Contact currently + Enrolled in the project) or `specific` (only the Contacts in `contact_ids`). Project + Managers and Reporters of the project, and the organisation's Admins and Reporters, may + read it. A catalogue that doesn't show the project's events, or isn't the project's + organisation's, returns `404`. security: [{tokenAuth: []}] parameters: - - name: id + - $ref: '#/components/parameters/ResourceId' + - name: project_id in: path required: true schema: type: integer - description: The Dropdown (Ratio Set) id - - name: query - in: query - required: false - schema: - type: string - description: Only answer choices whose name contains this, ignoring case - - name: charity_id - in: query - required: false - schema: - type: integer - description: Only this Organisation's Event Creation Forms - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/PerPage' responses: "200": - description: Paginated list of answer choices + description: Who can see the catalogue content: application/json: schema: - 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 } - name: { type: string } + $ref: '#/components/schemas/EventCatalogueAccess' example: - page: 1 - page_size: 2 - page_count: 1 - total_count: 2 - data: - - { id: 31, name: Archery } - - { id: 32, name: Boxing } + event_catalogue_id: 77 + project_id: 301 + mode: specific + contact_ids: [9001, 9002] "401": $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/EventCatalogueForbidden' "404": $ref: '#/components/responses/NotFound' - - /events/{id}: - get: - tags: [Events] - summary: Get an event - operationId: getEvent - description: | - One event, with everything shown on its event page and Edit Event page: its Event - Format's custom fields and Dropdown answers, the Signup Page, the Self Check-in Survey - and Wave, capacity and timesheet settings, listing details, and the links guests use to - sign up and check themselves in. For a master event (the first in a recurring series) - it also returns the Recurring Schedule, the Recurring End Date and how many events are - in the series. - - Anyone who can open the event page can read it. A member of the organisation who can't - gets `403`; an event of another organisation, or an unknown id, returns `404`. - `can_edit` and `can_delete` say whether you may change or delete it. - security: [{tokenAuth: []}] - parameters: - - $ref: '#/components/parameters/ResourceId' - responses: - "200": - description: The event - content: - application/json: - schema: - $ref: '#/components/schemas/Event' - example: - id: 9119 - name: "Yoga 1" - charity_id: 123 - start_datetime: "2030-01-08T14:00:00.000Z" - end_datetime: "2030-01-08T15:00:00.000Z" - timezone: "Europe/London" - location: "Main Hall" - event_type: "master" - listing_enabled: true - created_at: "2026-10-01T09:00:00.000Z" - updated_at: "2026-10-01T09:00:00.000Z" - project: { id: 456, name: "Youth Club" } - event_category: { id: 4521, name: "Workshops" } - master_event_id: null - guests_count: 12 - managers_count: 1 - workers_count: 2 - can_edit: true - can_delete: true - recurring_schedule: - rule: { rule_type: "IceCube::WeeklyRule", interval: 1, validations: { day: [2] } } - description: "Weekly on Tuesdays" - recurring_end_date: "2030-03-26" - series_events_count: 12 - custom_fields: - - { id: 77, name: "Room booking reference", value: "B-114" } - dropdowns: - - id: 3012 - name: "Session type" - answer_choices: [{ id: 88101, name: "Drop-in" }] - signup_page: { id: 310, name: "Youth Club signup" } - self_check_in: - survey: { id: 5501, name: "Session feedback", project_survey_id: 9921 } - wave: null - capacity: - guests: "fixed" - max_guests: 20 - allow_signup_after_full: true - guest_status_for_signup_id: 41 - guest_status_after_full_id: 43 - confirmation_message_after_full: "Unfortunately we have no more space, however we will keep your details on file and let you know if a space becomes available." - thank_you_message: "Your registration has been received. Thank you." - workers: "unlimited" - max_workers: 0 - timesheets_for_workers: true - timesheets_for_guests: false - listing: - listing_enabled: true - location: "Main Hall" - description: "

Gentle yoga for all abilities.

" - image_url: null - links: - self_check_in: "https://app.makerble.com/events/9119/kiosk" - signup: "https://app.makerble.com/charities/123/projects/456/beneficiaries/new?event_id=9119&redirect_to_check_in=false&referral_link_detail_id=310" - signup_and_self_check_in: "https://app.makerble.com/charities/123/projects/456/beneficiaries/new?event_id=9119&referral_link_detail_id=310" - "401": - $ref: '#/components/responses/Unauthorized' - "403": - description: You are in the organisation but may not see this event - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - example: - error: "You don't have permission to see this event." - "404": - $ref: '#/components/responses/NotFound' - patch: - tags: [Events] - summary: Update an event - operationId: updateEvent + tags: [Event Catalogues] + summary: Change who can see an Event Catalogue in a project + operationId: updateEventCatalogueAccess description: | - Changes the fields you give and leaves the rest as they are; Dropdowns you don't mention - keep their answers. Anyone who can open the Edit Event page can update the event. - - For a master event (the first in a recurring series), `apply_to: all_events_in_series` - also applies the change to every subsequent event, like the form's "Update this event - and all future events" button. The default is `this_event`. - - Locked after creation, as on the Edit Event page: the project, a series' time zone, and - a master event's start and end (they set the times of the whole series). - - To change a series' Recurring Schedule or Recurring End Date, as the Edit Event Series - page does, send `recurring_schedule` and/or `recurring_end_date` on the master event. - Call Preview a series schedule change first: it lists the events that would no longer - fit the new schedule. Each of those must be listed in `keep_event_ids` or - `delete_event_ids`, or nothing changes and you get `422`. Missing dates are created, - and the series is renumbered in date order. + Changes who in a project can see an Event Catalogue on the Contacts' Portal. Only the + project's Project Managers and the organisation's Admins may. Switching to + `every_enrolled` drops the ticked Contacts. Contacts can only be ticked under `specific`, + and must be in the project. security: [{tokenAuth: []}] parameters: - $ref: '#/components/parameters/ResourceId' + - name: project_id + in: path + required: true + schema: + type: integer requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/EventUpdateRequest' + type: object + properties: + mode: + type: string + enum: [every_enrolled, specific] + add_contact_ids: + type: array + items: + type: integer + remove_contact_ids: + type: array + items: + type: integer example: - name: "Evening Youth Club" - location: "Hall 3" - apply_to: all_events_in_series + mode: specific + add_contact_ids: [9001] responses: "200": - description: The event, as Get an event returns it + description: Who can now see the catalogue content: application/json: schema: - $ref: '#/components/schemas/Event' + $ref: '#/components/schemas/EventCatalogueAccess' "401": $ref: '#/components/responses/Unauthorized' "403": - $ref: '#/components/responses/ForbiddenError' + $ref: '#/components/responses/EventCatalogueForbidden' "404": $ref: '#/components/responses/NotFound' "422": $ref: '#/components/responses/UnprocessableEntityList' - - delete: - tags: [Events] - summary: Delete an event - operationId: deleteEvent + /projects/{project_id}/portal_links: + get: + tags: [Contacts' Portal] + summary: List Contacts' Portal links in a project + operationId: listPortalLinks description: | - Deletes an event, as the event page's Delete Event does. Deleting a master event (the - first of a recurring series) deletes the whole series. For a later event in a series, - `delete_option` chooses what goes: `this_event` (the default), - `current_and_upcoming_series_events`, or `all_series_events`. Anyone who can edit the - event can delete it. Deleting an event also deletes what is recorded against it. + Lists the project's Contacts who can see at least one Event Catalogue on the Contacts' + Portal, where Contacts book onto events, as the project's Portal Links page shows them: + whether each has a Portal link, when it was last sent and how, and whether they can be + sent it by email or SMS. The link itself is never returned, because it signs the Contact + in to their Portal. Project Managers and Reporters of the project, and the organisation's + Admins and Reporters, may read it. To give a Contact access, change who can see an Event + Catalogue in the project (`PATCH /event_catalogues/{id}/projects/{project_id}/access`). security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - name: delete_option - in: query - required: false - schema: { type: string, enum: [this_event, current_and_upcoming_series_events, all_series_events], default: this_event } + - name: project_id + in: path + required: true + schema: + type: integer + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' responses: "200": - description: The ids of the deleted events + description: One page of Contacts, by name content: application/json: schema: - type: object - required: [deleted_event_ids] - properties: - deleted_event_ids: { type: array, items: { type: integer } } + $ref: '#/components/schemas/PaginatedPortalLinks' example: - deleted_event_ids: [9120, 9121] + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - contact_id: 9001 + name: Amara Diallo + link_status: active + last_sent_at: "2026-10-20T09:15:00Z" + last_sent_channel: email + can_email: true + can_sms: false "401": $ref: '#/components/responses/Unauthorized' "403": - $ref: '#/components/responses/ForbiddenError' + $ref: '#/components/responses/PortalLinksForbidden' "404": $ref: '#/components/responses/NotFound' - "422": - $ref: '#/components/responses/UnprocessableEntityList' - - /events/{id}/series_schedule_preview: + /projects/{project_id}/portal_links/send: post: - tags: [Events] - summary: Preview a series schedule change - operationId: previewEventSeriesScheduleChange + tags: [Contacts' Portal] + summary: Send Contacts their Portal link + operationId: sendPortalLinks description: | - Shows what a new Recurring Schedule or Recurring End Date would do to a recurring series, - without changing anything, as the Edit Event Series page does before you save. Send it to - the master event (the first event of the series). Leave out either field to keep its - current value. - - `required_dates` lists every date the new schedule needs, with the event already on that - date or `exists: false` for one that would be created. `no_longer_fitting_events` lists - the events that don't fit the new schedule, and whether each has Stories or timesheets - recorded against it. Pass each of their ids in `keep_event_ids` or `delete_event_ids` - when you make the change with Update an event. + Sends each Contact their own link to the Contacts' Portal by email or SMS, as the Send + button on the project's Portal Links page does, creating the link if they don't have one + yet. Every Contact must be in the project and able to see at least one of its Event + Catalogues; otherwise nothing is sent and the response says why. Contacts with no email + address (or, for SMS, no mobile number) are skipped and named in `skipped`. Only the + project's Project Managers and the organisation's Admins may send links. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' + - name: project_id + in: path + required: true + schema: + type: integer requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/SeriesScheduleChangeRequest' + type: object + required: [contact_ids, channel] + properties: + contact_ids: + type: array + items: + type: integer + channel: + type: string + enum: [email, sms] example: - recurring_schedule: { frequency: weekly, interval: 2, days_of_week: [tuesday] } - recurring_end_date: "2030-02-05" + contact_ids: [9001, 9002] + channel: email responses: "200": - description: What the change would do + description: The links were queued to send content: application/json: schema: - $ref: '#/components/schemas/SeriesSchedulePreview' + type: object + properties: + sent: + type: integer + description: How many Contacts were sent their link + skipped: + type: array + description: Names of the Contacts with no way to receive it + items: + type: string example: - master_event_id: 9119 - recurring_schedule: { frequency: weekly, interval: 2, days_of_week: [tuesday], days_of_month: [], description: "Every 2 weeks on Tuesdays" } - recurring_end_date: "2030-02-05" - required_dates: - - { start_datetime: "2030-01-08T18:00:00.000Z", event_id: 9119, exists: true } - - { start_datetime: "2030-01-22T18:00:00.000Z", event_id: 9121, exists: true } - - { start_datetime: "2030-02-05T18:00:00.000Z", event_id: null, exists: false } - no_longer_fitting_events: - - { id: 9120, name: "Youth Club 2", start_datetime: "2030-01-15T18:00:00.000Z", has_stories: false, has_timesheets: false } + sent: 1 + skipped: [Ben Okafor] "401": $ref: '#/components/responses/Unauthorized' "403": - $ref: '#/components/responses/ForbiddenError' + $ref: '#/components/responses/PortalLinksForbidden' "404": $ref: '#/components/responses/NotFound' "422": $ref: '#/components/responses/UnprocessableEntityList' - /registers: + /events: get: tags: [Events] - summary: List my Registers - operationId: listRegisters + summary: List events + operationId: listEvents description: | - The Registers of the recurring event series the user staffs: each series in which they - are an Event Worker or Event Manager of an event starting today or later, with that next - event, soonest first. This is the list the Registers tab of the Events tile on My Homepage - shows. + Lists the events you can see, as on the **Manage Events** page, soonest first. + Organisation Admins see every event in their organisation; other users see the events + of the projects they are an editor of and the events they are an Event Manager or Event + Worker at. + + Filter by `project_id`, `event_category_id` (Event Format), `event_type`, a + `start_date`/`end_date` range (the event's start falls between them), or + `master_event_id` to list every event in one recurring series (the master event and + its subsequent events). Pass `charity_id` to list one organisation; one you are not a + member of returns `404`. + + Filter by the answers on the events' **Event Creation Form** (the custom fields and + Dropdowns of their Event Format) with `form_field_filters`, as the "Event Creation Form + fields" section of the Filter Events panel does. Get the keys from + `GET /event_filter_fields`. Values: text the answer contains for a Text or Email Address + field; digits for a Telephone field; `yes` or `no` for a Tickbox, Attachment or + Signature field; `_from` and/or `_to` for a Number, Date (`YYYY-MM-DD`) or + Time (`HH:MM`) range, inclusive; a list of answer choice (Sub Ratio) ids for a Dropdown, + matching an event that has any of them. Every key given must match. + + `sort` orders the whole list, not just one page, by those fields: a `sort_key` from + `GET /event_filter_fields` and optionally `asc` (the default) or `desc`, several + separated by commas. Blank answers come last. An unknown filter or sort key returns `422`. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/Page' + - name: charity_id + in: query + required: false + schema: + type: integer + description: Only this Organisation's (Charity's) events + - name: project_id + in: query + required: false + schema: + type: integer + - name: event_category_id + in: query + required: false + schema: + type: integer + description: Only events of this Event Format (Event Category) + - name: event_type + in: query + required: false + schema: + type: string + enum: [one-off, master, subsequent] + description: "`master` is the first event of a recurring series; `subsequent` are the rest of the series" + - name: start_date + in: query + required: false + schema: + type: string + format: date + description: Only events starting on or after this date + - name: end_date + in: query + required: false + schema: + type: string + format: date + description: Only events starting on or before this date + - name: master_event_id + in: query + required: false + schema: + type: integer + description: Only the events of this recurring series + - name: form_field_filters + in: query + required: false + style: deepObject + explode: true + schema: + type: object + additionalProperties: true + example: + custom_field_12: archery + custom_field_15_from: 5 + custom_field_15_to: 10 + ratio_set_7: [31, 32] + description: Event Creation Form answers to match, keyed by the `filter_keys` of `GET /event_filter_fields`, e.g. `form_field_filters[custom_field_12]=archery&form_field_filters[ratio_set_7][]=31` + - name: sort + in: query + required: false + schema: + type: string + example: "custom_field_12 desc, ratio_set_7 asc" + description: "Sort by Event Creation Form fields: `sort_key` values from `GET /event_filter_fields`, each optionally followed by `asc` or `desc`. Default: soonest first" + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: Paginated list of events + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEvents' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 9120 + name: "Yoga 2" + charity_id: 123 + start_datetime: "2030-01-15T14:00:00.000Z" + end_datetime: "2030-01-15T15:00:00.000Z" + timezone: "Europe/London" + location: "Main Hall" + event_type: "subsequent" + listing_enabled: false + created_at: "2026-10-01T09:00:00.000Z" + updated_at: "2026-10-01T09:00:00.000Z" + project: { id: 456, name: "Youth Club" } + event_category: { id: 4521, name: "Workshops" } + master_event_id: 9119 + guests_count: 12 + managers_count: 1 + workers_count: 2 + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + post: + tags: [Events] + summary: Create an event + operationId: createEvent + description: | + Creates a one-off event, or a recurring series when `recurring_schedule` and + `recurring_end_date` are given: the master event plus every subsequent event up to the + Recurring End Date, as the Create Event form does. + + Work out the ids first: list the Event Formats you can use in the project + (`GET /projects/{id}/event_categories`), then get the form for the one you choose + (`GET /projects/{id}/event_form`). Every id in the request is checked against that form. + Problems are returned together as `422`. + + Times are ISO 8601. A time without an offset is a local time in `timezone`, an IANA + time zone name that defaults to yours; daylight saving is worked out for you. + You become the Event Manager unless you give `manager_ids`. + + Not handled by the API: an event image, and Event Steps (project automations). + To add a Contact as a guest, use the guests endpoints. + security: [{tokenAuth: []}] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/EventCreateRequest' + examples: + recurringSeries: + summary: A weekly series with a Dropdown, a custom field and a Signup Page + value: + project_id: 456 + event_category_id: 42 + name: "Youth Club" + start_datetime: "2030-01-08T18:00" + end_datetime: "2030-01-08T20:00" + timezone: "Europe/London" + location: "Main Hall" + custom_fields: { "77": "B-114" } + dropdowns: { "3012": [88101] } + signup_page_id: 310 + guest_status_for_signup_id: 7 + capacity: + guests: fixed + max_guests: 20 + allow_signup_after_full: true + guest_status_after_full_id: 8 + confirmation_message_after_full: "We're full, but we'll let you know if a place comes up." + recurring_schedule: { frequency: weekly, interval: 1, days_of_week: [tuesday] } + recurring_end_date: "2030-03-26" + responses: + "201": + description: The event, as Get an event returns it + content: + application/json: + schema: + $ref: '#/components/schemas/Event' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + /event_filter_fields: + get: + tags: [Events] + summary: List the fields events can be filtered and sorted by + operationId: listEventFilterFields + description: | + Lists the custom fields and Dropdowns used on the **Event Creation Forms** of your + organisations' Event Formats, alphabetically, as the "Event Creation Form fields" + section of the Filter Events panel on the Manage Events page lists them. Use their + `filter_keys` in the `form_field_filters` of `GET /events`, and their `sort_key` in its + `sort`. + + `data_type` is one of `text`, `email_address`, `telephone`, `number`, `date`, `time`, + `tickbox`, `file` (Attachment), `signature` or `dropdown`. A Number, Date or Time field + has two filter keys, `_from` and `_to`. A Dropdown's filter takes answer + choice ids: list them with `GET /event_filter_fields/{id}/choices`. + security: [{tokenAuth: []}] + parameters: + - name: charity_id + in: query + required: false + schema: + type: integer + description: Only this Organisation's (Charity's) Event Creation Forms + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + responses: + "200": + description: Paginated list of fields + content: + application/json: + schema: + 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: + key: { type: string } + id: { type: integer, description: The custom field or Dropdown (Ratio Set) id } + name: { type: string } + data_type: { type: string } + filter_keys: { type: array, items: { type: string } } + filter_hint: { type: string } + sort_key: { type: string } + example: + page: 1 + page_size: 2 + page_count: 1 + total_count: 2 + data: + - key: ratio_set_7 + id: 7 + name: Activity + data_type: dropdown + filter_keys: [ratio_set_7] + filter_hint: A list of answer choice ids; an event matches if it has any of them + sort_key: ratio_set_7 + - key: custom_field_15 + id: 15 + name: Age + data_type: number + filter_keys: [custom_field_15_from, custom_field_15_to] + filter_hint: A number for either or both ends of the range, inclusive + sort_key: custom_field_15 + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + + /event_filter_fields/{id}/choices: + get: + tags: [Events] + summary: List a Dropdown's answer choices for filtering events + operationId: listEventFilterFieldChoices + description: | + Lists the answer choices (Sub Ratios) of a Dropdown (Ratio Set) from + `GET /event_filter_fields`, alphabetically, as the Filter Events panel's typeahead + offers them. Pass their ids in `form_field_filters[ratio_set_]` of `GET /events`. + A Dropdown that isn't on an Event Creation Form of your organisations returns `404`. + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: + type: integer + description: The Dropdown (Ratio Set) id + - name: query + in: query + required: false + schema: + type: string + description: Only answer choices whose name contains this, ignoring case + - name: charity_id + in: query + required: false + schema: + type: integer + description: Only this Organisation's Event Creation Forms + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + responses: + "200": + description: Paginated list of answer choices + content: + application/json: + schema: + 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 } + name: { type: string } + example: + page: 1 + page_size: 2 + page_count: 1 + total_count: 2 + data: + - { id: 31, name: Archery } + - { id: 32, name: Boxing } + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + + /events/{id}: + get: + tags: [Events] + summary: Get an event + operationId: getEvent + description: | + One event, with everything shown on its event page and Edit Event page: its Event + Format's custom fields and Dropdown answers, the Signup Page, the Self Check-in Survey + and Wave, capacity and timesheet settings, listing details, and the links guests use to + sign up and check themselves in. For a master event (the first in a recurring series) + it also returns the Recurring Schedule, the Recurring End Date and how many events are + in the series. + + Anyone who can open the event page can read it. A member of the organisation who can't + gets `403`; an event of another organisation, or an unknown id, returns `404`. + `can_edit` and `can_delete` say whether you may change or delete it. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + responses: + "200": + description: The event + content: + application/json: + schema: + $ref: '#/components/schemas/Event' + example: + id: 9119 + name: "Yoga 1" + charity_id: 123 + start_datetime: "2030-01-08T14:00:00.000Z" + end_datetime: "2030-01-08T15:00:00.000Z" + timezone: "Europe/London" + location: "Main Hall" + event_type: "master" + listing_enabled: true + created_at: "2026-10-01T09:00:00.000Z" + updated_at: "2026-10-01T09:00:00.000Z" + project: { id: 456, name: "Youth Club" } + event_category: { id: 4521, name: "Workshops" } + master_event_id: null + guests_count: 12 + managers_count: 1 + workers_count: 2 + can_edit: true + can_delete: true + recurring_schedule: + rule: { rule_type: "IceCube::WeeklyRule", interval: 1, validations: { day: [2] } } + description: "Weekly on Tuesdays" + recurring_end_date: "2030-03-26" + series_events_count: 12 + custom_fields: + - { id: 77, name: "Room booking reference", value: "B-114" } + dropdowns: + - id: 3012 + name: "Session type" + answer_choices: [{ id: 88101, name: "Drop-in" }] + signup_page: { id: 310, name: "Youth Club signup" } + self_check_in: + survey: { id: 5501, name: "Session feedback", project_survey_id: 9921 } + wave: null + capacity: + guests: "fixed" + max_guests: 20 + allow_signup_after_full: true + guest_status_for_signup_id: 41 + guest_status_after_full_id: 43 + confirmation_message_after_full: "Unfortunately we have no more space, however we will keep your details on file and let you know if a space becomes available." + thank_you_message: "Your registration has been received. Thank you." + workers: "unlimited" + max_workers: 0 + timesheets_for_workers: true + timesheets_for_guests: false + listing: + listing_enabled: true + location: "Main Hall" + description: "

Gentle yoga for all abilities.

" + image_url: null + links: + self_check_in: "https://app.makerble.com/events/9119/kiosk" + signup: "https://app.makerble.com/charities/123/projects/456/beneficiaries/new?event_id=9119&redirect_to_check_in=false&referral_link_detail_id=310" + signup_and_self_check_in: "https://app.makerble.com/charities/123/projects/456/beneficiaries/new?event_id=9119&referral_link_detail_id=310" + "401": + $ref: '#/components/responses/Unauthorized' + "403": + description: You are in the organisation but may not see this event + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "You don't have permission to see this event." + "404": + $ref: '#/components/responses/NotFound' + + patch: + tags: [Events] + summary: Update an event + operationId: updateEvent + description: | + Changes the fields you give and leaves the rest as they are; Dropdowns you don't mention + keep their answers. Anyone who can open the Edit Event page can update the event. + + For a master event (the first in a recurring series), `apply_to: all_events_in_series` + also applies the change to every subsequent event, like the form's "Update this event + and all future events" button. The default is `this_event`. + + Locked after creation, as on the Edit Event page: the project, a series' time zone, and + a master event's start and end (they set the times of the whole series). + + To change a series' Recurring Schedule or Recurring End Date, as the Edit Event Series + page does, send `recurring_schedule` and/or `recurring_end_date` on the master event. + Call Preview a series schedule change first: it lists the events that would no longer + fit the new schedule. Each of those must be listed in `keep_event_ids` or + `delete_event_ids`, or nothing changes and you get `422`. Missing dates are created, + and the series is renumbered in date order. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/EventUpdateRequest' + example: + name: "Evening Youth Club" + location: "Hall 3" + apply_to: all_events_in_series + responses: + "200": + description: The event, as Get an event returns it + content: + application/json: + schema: + $ref: '#/components/schemas/Event' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + delete: + tags: [Events] + summary: Delete an event + operationId: deleteEvent + description: | + Deletes an event, as the event page's Delete Event does. Deleting a master event (the + first of a recurring series) deletes the whole series. For a later event in a series, + `delete_option` chooses what goes: `this_event` (the default), + `current_and_upcoming_series_events`, or `all_series_events`. Anyone who can edit the + event can delete it. Deleting an event also deletes what is recorded against it. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - name: delete_option + in: query + required: false + schema: { type: string, enum: [this_event, current_and_upcoming_series_events, all_series_events], default: this_event } + responses: + "200": + description: The ids of the deleted events + content: + application/json: + schema: + type: object + required: [deleted_event_ids] + properties: + deleted_event_ids: { type: array, items: { type: integer } } + example: + deleted_event_ids: [9120, 9121] + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + /events/{id}/series_schedule_preview: + post: + tags: [Events] + summary: Preview a series schedule change + operationId: previewEventSeriesScheduleChange + description: | + Shows what a new Recurring Schedule or Recurring End Date would do to a recurring series, + without changing anything, as the Edit Event Series page does before you save. Send it to + the master event (the first event of the series). Leave out either field to keep its + current value. + + `required_dates` lists every date the new schedule needs, with the event already on that + date or `exists: false` for one that would be created. `no_longer_fitting_events` lists + the events that don't fit the new schedule, and whether each has Stories or timesheets + recorded against it. Pass each of their ids in `keep_event_ids` or `delete_event_ids` + when you make the change with Update an event. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SeriesScheduleChangeRequest' + example: + recurring_schedule: { frequency: weekly, interval: 2, days_of_week: [tuesday] } + recurring_end_date: "2030-02-05" + responses: + "200": + description: What the change would do + content: + application/json: + schema: + $ref: '#/components/schemas/SeriesSchedulePreview' + example: + master_event_id: 9119 + recurring_schedule: { frequency: weekly, interval: 2, days_of_week: [tuesday], days_of_month: [], description: "Every 2 weeks on Tuesdays" } + recurring_end_date: "2030-02-05" + required_dates: + - { start_datetime: "2030-01-08T18:00:00.000Z", event_id: 9119, exists: true } + - { start_datetime: "2030-01-22T18:00:00.000Z", event_id: 9121, exists: true } + - { start_datetime: "2030-02-05T18:00:00.000Z", event_id: null, exists: false } + no_longer_fitting_events: + - { id: 9120, name: "Youth Club 2", start_datetime: "2030-01-15T18:00:00.000Z", has_stories: false, has_timesheets: false } + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + /registers: + get: + tags: [Events] + summary: List my Registers + operationId: listRegisters + description: | + The Registers of the recurring event series the user staffs: each series in which they + are an Event Worker or Event Manager of an event starting today or later, with that next + event, soonest first. This is the list the Registers tab of the Events tile on My Homepage + shows. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + responses: + "200": + description: A page of series + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + type: object + properties: + master_event_id: { type: integer } + name: { type: string, description: The series name, without the event's number } + project: + type: object + properties: { id: { type: integer }, name: { type: string } } + next_event: + type: object + properties: + id: { type: integer } + name: { type: string } + start_datetime: { type: string, format: date-time } + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: [{ master_event_id: 812, name: Ruby Training, project: { id: 41, name: Coding Club }, next_event: { id: 815, name: Ruby Training 4, start_datetime: "2026-11-23T10:00:00Z" } }] + "401": + $ref: '#/components/responses/Unauthorized' + /events/{id}/register: + get: + tags: [Events] + summary: Get an event series' Register + operationId: getEventRegister + description: | + The Register page of a recurring event series: a row per guest (Contact) invited to any + event in the series, in alphabetical order, and for every event in the series, in date + order, that guest's answers in their latest attendance Story for it. The attendance Survey + is the one set on the master event's Event Format. Activity metrics are counted once per + event, so they are returned as each event's `totals` rather than per guest. `id` is any + event in the series; a one-off event has no register. Anyone who can open the event page + can read it. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + responses: + "200": + description: The series and a page of its guests + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + master_event_id: { type: integer } + name: { type: string, description: "The series name, without the event's number" } + schedule: { type: string, example: Weekly on Mondays from 2nd November 2026 to 14th December 2026 } + project: + type: object + properties: { id: { type: integer }, name: { type: string } } + survey: + type: object + nullable: true + description: The attendance Survey, or null when the Event Format has none + properties: { id: { type: integer }, name: { type: string } } + columns: + type: array + items: + type: object + properties: + current_field_id: { type: integer } + name: { type: string } + type: { type: string, enum: [scale, binary, value, participation, custom_field] } + compulsory: { type: boolean } + events: + type: array + items: + type: object + properties: + id: { type: integer } + name: { type: string } + start_datetime: { type: string, format: date-time } + full: { type: boolean, description: The event has reached its guest capacity } + totals: + type: array + items: + type: object + properties: + current_field_id: { type: integer } + name: { type: string } + total: { type: number } + data: + type: array + items: + type: object + properties: + contact_id: { type: integer } + name: { type: string } + events: + type: array + items: + type: object + properties: + event_id: { type: integer } + in_event: { type: boolean } + story_id: { type: integer, nullable: true } + answers: + type: object + description: Answers by current_field_id; empty when the guest is not in the event + additionalProperties: { type: string, nullable: true } + example: + master_event_id: 812 + name: Ruby Training + schedule: Weekly on Mondays from 2nd November 2026 to 14th December 2026 + project: { id: 41, name: Coding Club } + survey: { id: 77, name: Attendance } + columns: [{ current_field_id: 9001, name: Minutes late, type: value, compulsory: false }] + events: [{ id: 812, name: Ruby Training 1, start_datetime: "2026-11-02T10:00:00Z", full: false, totals: [] }] + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: [{ contact_id: 5521, name: Ann Smith, events: [{ event_id: 812, in_event: true, story_id: 33410, answers: { "9001": "4" } }] }] + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + /events/{id}/register/cells: + patch: + tags: [Events] + summary: Save one answer on an event series' Register + operationId: updateEventRegisterCell + description: | + Saves one guest's answer to one question of the attendance Survey for one event, as the + pencil in a Register cell does. `id` is the event the answer is for. The answer goes in the + guest's latest attendance Story for that event; if they have none, they are added to the + event's latest Story, or a Story is created. Only that answer changes, and compulsory + questions may be left unanswered. For an Activity metric, which is counted once per event, + leave out `contact_id` and send the event's total as a whole number. The guest must already + be in the event. The event's Event Workers and Event Managers, its Project Managers and + Organisation Admins may save answers. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [current_field_id, value] + properties: + contact_id: { type: integer, description: The guest; leave out for an Activity metric total } + current_field_id: { type: integer, description: "The question, from the Register's columns or an event's totals" } + value: + description: | + scale: an array of answer choice (sub-ratio) ids; binary and participation: true or + false; value: a number of 0 or more; custom_field: text, a date as YYYY-MM-DD or a + time as HH:MM. An empty value clears the answer. + oneOf: + - { type: array, items: { type: integer } } + - { type: boolean } + - { type: number } + - { type: string } + example: { contact_id: 5521, current_field_id: 9001, value: "4" } + responses: + "200": + description: The saved answer + content: + application/json: + schema: + type: object + properties: + event_id: { type: integer } + contact_id: { type: integer, nullable: true } + current_field_id: { type: integer } + story_id: { type: integer, nullable: true } + answer: { description: The answer as the Register shows it, or the event's total } + example: { event_id: 812, contact_id: 5521, current_field_id: 9001, story_id: 33410, answer: "4" } + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntity' + /events/{id}/guests: + get: + tags: [Events] + summary: List an event's guests + operationId: listEventGuests + description: | + The event's guests (Contacts), with each one's Guest Status (event state) and, when + the Event Format has Event Roles turned on, Event Role. Anyone who can open the event + page can see them. Use search to find guests by part of their name or Contact ID, as + the search box above the event page's guests table does. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - name: search + in: query + required: false + description: Part of a guest's name or Contact ID (the prefix and leading zeros of a Contact ID are ignored). Searches every page. + schema: { type: string } + example: Mokoena + - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: A page of guests, by name + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: { $ref: '#/components/schemas/EventGuest' } + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + post: + tags: [Events] + summary: Add guests to an event + operationId: addEventGuests + description: | + Adds Contacts in the event's project as guests, as the event page's Add Guests does. + Contacts already on the event are left as they are. `guest_status_id` is one of the + Event Format's Guest Statuses (default: its first), and each Contact must meet that + Guest Status's requirements. `event_role_id` must be one of the Event Format's Event + Roles for guests. A fixed guest limit is respected. For an event in a recurring + series, `apply_to: this_and_upcoming_events` adds them to the later events too. + Anyone who can open the event page can add guests. + + **Adding everyone who matches the Manage Contacts filters.** Instead of `contact_ids`, give + `filter_data` (the Manage Contacts filters, e.g. `{"beneficiary_state_ids": ["1"]}`; `{}` + for every Contact the user can see), leaving out `excluded_ids`. `project_id` is a shortcut + for the Project filter. This is **Add to › An event** for the Contacts selected on Manage + Contacts. Each Contact is added in turn, and those that can't be added are skipped and + counted in `skip_counts` rather than refusing the whole request: + - `headline_only`: the user only has Headline Only Access to them; + - `not_in_project`: they aren't in the event's project; + - `event_full`: the event's guest limit has been reached; + - `requirements_not_met`: they don't meet the Guest Status's requirements. + Contacts already on the event keep their Guest Status. Up to 50 Contacts are added + straight away (`200`); more run in the background (`202`), and + `GET /beneficiaries/bulk_actions/{id}` reports the progress. `filter_data` adds guests to + this event only, and can't be combined with `contact_ids` or `event_role_id`. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + contact_ids: + type: array + items: { type: integer } + description: The Contacts to add. Leave out to use filter_data instead. + filter_data: + type: object + additionalProperties: true + description: Manage Contacts filters selecting the Contacts to add, used instead of contact_ids + excluded_ids: + type: array + items: { type: integer } + description: With filter_data, Contacts matching the filters to leave out + project_id: + type: integer + description: With filter_data, a shortcut for the Project filter (Contacts in this Project) + guest_status_id: { type: integer } + event_role_id: { type: integer } + apply_to: { type: string, enum: [this_event, this_and_upcoming_events], default: this_event } + examples: + contacts: + summary: Named Contacts + value: + contact_ids: [5501, 5502] + guest_status_id: 12 + event_role_id: 4 + matching: + summary: Everyone matching the Manage Contacts filters + value: + filter_data: { beneficiary_state_ids: ["1"] } + excluded_ids: [5503] + guest_status_id: 12 + responses: + "200": + description: filter_data was given and the matching Contacts were added straight away (50 or fewer) + content: + application/json: + schema: { $ref: '#/components/schemas/EventGuestsBulkAdd' } + example: + id: 51 + status: completed + total_count: 8 + processed_count: 8 + changed_count: 6 + skip_counts: { not_in_project: 1 } + background: false + summary: "6 contacts changed. 1 skipped: 1 because they aren't in Youth Mentoring, the event's project." + event_id: 2201 + guests_count: 14 + "201": + description: The guests were added + content: + application/json: + schema: { $ref: '#/components/schemas/EventGuestCount' } + "202": + description: filter_data was given and more than 50 Contacts match, so they are added in the background. Poll GET /beneficiaries/bulk_actions/{id}. + content: + application/json: + schema: { $ref: '#/components/schemas/EventGuestsBulkAdd' } + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + /events/{id}/guests/{contact_id}: + patch: + tags: [Events] + summary: Change a guest's Guest Status or Event Role + operationId: updateEventGuest + description: | + Changes one guest's Guest Status (checking its requirements) and/or Event Role on this + event. Send `event_role_id: null` to clear the role. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - { name: contact_id, in: path, required: true, schema: { type: integer }, description: "The guest's Contact (beneficiary) id" } + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + guest_status_id: { type: integer } + event_role_id: { type: integer, nullable: true } + example: + guest_status_id: 13 responses: "200": - description: A page of series + description: The guest was changed content: application/json: - schema: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: - type: object - properties: - master_event_id: { type: integer } - name: { type: string, description: The series name, without the event's number } - project: - type: object - properties: { id: { type: integer }, name: { type: string } } - next_event: - type: object - properties: - id: { type: integer } - name: { type: string } - start_datetime: { type: string, format: date-time } - example: - page: 1 - page_size: 1 - page_count: 1 - total_count: 1 - data: [{ master_event_id: 812, name: Ruby Training, project: { id: 41, name: Coding Club }, next_event: { id: 815, name: Ruby Training 4, start_datetime: "2026-11-23T10:00:00Z" } }] + schema: { $ref: '#/components/schemas/EventGuestCount' } "401": $ref: '#/components/responses/Unauthorized' - /events/{id}/register: + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + delete: + tags: [Events] + summary: Remove a guest from an event + operationId: removeEventGuest + description: | + Removes the Contact from the event's guests. For an event in a recurring series, + `apply_to: this_and_upcoming_events` removes them from the later events too. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - { name: contact_id, in: path, required: true, schema: { type: integer }, description: "The guest's Contact (beneficiary) id" } + - { name: apply_to, in: query, required: false, schema: { type: string, enum: [this_event, this_and_upcoming_events], default: this_event } } + responses: + "200": + description: The guest was removed + content: + application/json: + schema: { $ref: '#/components/schemas/EventGuestCount' } + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + /events/{id}/staff: get: tags: [Events] - summary: Get an event series' Register - operationId: getEventRegister + summary: List an event's Event Managers and Workers + operationId: listEventStaff description: | - The Register page of a recurring event series: a row per guest (Contact) invited to any - event in the series, in alphabetical order, and for every event in the series, in date - order, that guest's answers in their latest attendance Story for it. The attendance Survey - is the one set on the master event's Event Format. Activity metrics are counted once per - event, so they are returned as each event's `totals` rather than per guest. `id` is any - event in the series; a one-off event has no register. Anyone who can open the event page - can read it. + The event's Event Managers and Event Workers, with their roles on the event and, when + the Event Format has Event Roles turned on, their Event Role. Anyone who can open the + event page can see them. security: [{tokenAuth: []}] parameters: - $ref: '#/components/parameters/ResourceId' @@ -9803,7 +11196,7 @@ paths: - $ref: '#/components/parameters/PerPage' responses: "200": - description: The series and a page of its guests + description: A page of staff, by name content: application/json: schema: @@ -9811,133 +11204,116 @@ paths: - $ref: '#/components/schemas/PaginationEnvelope' - type: object properties: - master_event_id: { type: integer } - name: { type: string, description: "The series name, without the event's number" } - schedule: { type: string, example: Weekly on Mondays from 2nd November 2026 to 14th December 2026 } - project: - type: object - properties: { id: { type: integer }, name: { type: string } } - survey: - type: object - nullable: true - description: The attendance Survey, or null when the Event Format has none - properties: { id: { type: integer }, name: { type: string } } - columns: - type: array - items: - type: object - properties: - current_field_id: { type: integer } - name: { type: string } - type: { type: string, enum: [scale, binary, value, participation, custom_field] } - compulsory: { type: boolean } - events: - type: array - items: - type: object - properties: - id: { type: integer } - name: { type: string } - start_datetime: { type: string, format: date-time } - full: { type: boolean, description: The event has reached its guest capacity } - totals: - type: array - items: - type: object - properties: - current_field_id: { type: integer } - name: { type: string } - total: { type: number } data: type: array - items: - type: object - properties: - contact_id: { type: integer } - name: { type: string } - events: - type: array - items: - type: object - properties: - event_id: { type: integer } - in_event: { type: boolean } - story_id: { type: integer, nullable: true } - answers: - type: object - description: Answers by current_field_id; empty when the guest is not in the event - additionalProperties: { type: string, nullable: true } - example: - master_event_id: 812 - name: Ruby Training - schedule: Weekly on Mondays from 2nd November 2026 to 14th December 2026 - project: { id: 41, name: Coding Club } - survey: { id: 77, name: Attendance } - columns: [{ current_field_id: 9001, name: Minutes late, type: value, compulsory: false }] - events: [{ id: 812, name: Ruby Training 1, start_datetime: "2026-11-02T10:00:00Z", full: false, totals: [] }] - page: 1 - page_size: 1 - page_count: 1 - total_count: 1 - data: [{ contact_id: 5521, name: Ann Smith, events: [{ event_id: 812, in_event: true, story_id: 33410, answers: { "9001": "4" } }] }] + items: { $ref: '#/components/schemas/EventStaffMember' } "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/ForbiddenError' "404": $ref: '#/components/responses/NotFound' - /events/{id}/register/cells: - patch: + post: tags: [Events] - summary: Save one answer on an event series' Register - operationId: updateEventRegisterCell + summary: Add Event Managers or Workers + operationId: addEventStaff description: | - Saves one guest's answer to one question of the attendance Survey for one event, as the - pencil in a Register cell does. `id` is the event the answer is for. The answer goes in the - guest's latest attendance Story for that event; if they have none, they are added to the - event's latest Story, or a Story is created. Only that answer changes, and compulsory - questions may be left unanswered. For an Activity metric, which is counted once per event, - leave out `contact_id` and send the event's total as a whole number. The guest must already - be in the event. The event's Event Workers and Event Managers, its Project Managers and - Organisation Admins may save answers. + Adds colleagues in the event's project or organisation as Event Managers or Event + Workers, as the Edit Event form does, respecting a fixed worker limit. `event_role_id` + must be one of the Event Format's Event Roles for Event Managers and Workers, and is + set on this event. For a master event, `apply_to: all_events_in_series` adds them to + the whole series. Needs permission to edit the event. + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [user_ids, role] + properties: + user_ids: { type: array, items: { type: integer } } + role: { type: string, enum: [manager, worker] } + event_role_id: { type: integer } + apply_to: { type: string, enum: [this_event, all_events_in_series], default: this_event } + example: + user_ids: [301] + role: worker + event_role_id: 7 + responses: + "200": + description: The event, as Get an event returns it + content: + application/json: + schema: + $ref: '#/components/schemas/Event' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + + /events/{id}/staff/{user_id}: + patch: + tags: [Events] + summary: Change an Event Manager's or Worker's Event Role + operationId: updateEventStaffMember + description: "Sets or clears (`event_role_id: null`) the Event Role of one of the event's Event Managers or Workers." + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - { name: user_id, in: path, required: true, schema: { type: integer } } + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + event_role_id: { type: integer, nullable: true } + example: + event_role_id: 7 + responses: + "200": + description: The event, as Get an event returns it + content: + application/json: + schema: + $ref: '#/components/schemas/Event' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntityList' + delete: + tags: [Events] + summary: Remove an Event Manager or Worker + operationId: removeEventStaffMember + description: | + Removes the user as an Event Manager and/or Worker (`role` to remove only one). At + least one Event Manager must remain. For a master event, `apply_to: + all_events_in_series` removes them from the whole series. security: [{tokenAuth: []}] parameters: - $ref: '#/components/parameters/ResourceId' - requestBody: - required: true - content: - application/json: - schema: - type: object - required: [current_field_id, value] - properties: - contact_id: { type: integer, description: The guest; leave out for an Activity metric total } - current_field_id: { type: integer, description: "The question, from the Register's columns or an event's totals" } - value: - description: | - scale: an array of answer choice (sub-ratio) ids; binary and participation: true or - false; value: a number of 0 or more; custom_field: text, a date as YYYY-MM-DD or a - time as HH:MM. An empty value clears the answer. - oneOf: - - { type: array, items: { type: integer } } - - { type: boolean } - - { type: number } - - { type: string } - example: { contact_id: 5521, current_field_id: 9001, value: "4" } + - { name: user_id, in: path, required: true, schema: { type: integer } } + - { name: role, in: query, required: false, schema: { type: string, enum: [manager, worker] } } + - { name: apply_to, in: query, required: false, schema: { type: string, enum: [this_event, all_events_in_series], default: this_event } } responses: "200": - description: The saved answer + description: The event, as Get an event returns it content: application/json: schema: - type: object - properties: - event_id: { type: integer } - contact_id: { type: integer, nullable: true } - current_field_id: { type: integer } - story_id: { type: integer, nullable: true } - answer: { description: The answer as the Register shows it, or the event's total } - example: { event_id: 812, contact_id: 5521, current_field_id: 9001, story_id: 33410, answer: "4" } + $ref: '#/components/schemas/Event' "401": $ref: '#/components/responses/Unauthorized' "403": @@ -9945,432 +11321,833 @@ paths: "404": $ref: '#/components/responses/NotFound' "422": - $ref: '#/components/responses/UnprocessableEntity' - /events/{id}/guests: + $ref: '#/components/responses/UnprocessableEntityList' + + /projects/{id}/event_categories: get: tags: [Events] - summary: List an event's guests - operationId: listEventGuests - description: | - The event's guests (Contacts), with each one's Guest Status (event state) and, when - the Event Format has Event Roles turned on, Event Role. Anyone who can open the event - page can see them. Use search to find guests by part of their name or Contact ID, as - the search box above the event page's guests table does. + summary: List the Event Formats you can create events with in a Project + description: >- + The Event Formats (Event Categories) assigned to the Project, which are the formats the + Create Event form offers there. Returns 403 unless you can create events in the Project: + it must have events turned on, and you must be an Organisation Admin, a Project Manager, + or a Project Reporter or Observer chosen as one of its Event Creators. + operationId: listProjectEventFormats security: [{tokenAuth: []}] parameters: - $ref: '#/components/parameters/ResourceId' - - name: search - in: query - required: false - description: Part of a guest's name or Contact ID (the prefix and leading zeros of a Contact ID are ignored). Searches every page. - schema: { type: string } - example: Mokoena - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' - - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: A page of guests, by name + description: The Project's Event Formats content: application/json: schema: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: { $ref: '#/components/schemas/EventGuest' } + $ref: '#/components/schemas/PaginatedProjectEventFormats' "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/ForbiddenError' "404": $ref: '#/components/responses/NotFound' - post: + + /projects/{id}/event_form: + get: tags: [Events] - summary: Add guests to an event - operationId: addEventGuests - description: | - Adds Contacts in the event's project as guests, as the event page's Add Guests does. - Contacts already on the event are left as they are. `guest_status_id` is one of the - Event Format's Guest Statuses (default: its first), and each Contact must meet that - Guest Status's requirements. `event_role_id` must be one of the Event Format's Event - Roles for guests. A fixed guest limit is respected. For an event in a recurring - series, `apply_to: this_and_upcoming_events` adds them to the later events too. - Anyone who can open the event page can add guests. + summary: Get the Create or Edit Event form for an Event Format in a Project + description: >- + Everything the Create Event form offers once an Event Format is chosen: its fields (event + details, custom fields and Dropdowns with their answer choices), the Surveys and Waves + available for Self Check-in, the Project's Signup Pages, the Guest Statuses a Signup Page + can put guests into, and the Event Roles. Pass event_id to get the Edit Event form for an + existing event, which also allows the Event Format the event already uses. Returns 403 + unless you can create events in the Project, or edit the event. + operationId: getEventForm security: [{tokenAuth: []}] parameters: - $ref: '#/components/parameters/ResourceId' - requestBody: - required: true - content: - application/json: - schema: - type: object - required: [contact_ids] - properties: - contact_ids: { type: array, items: { type: integer } } - guest_status_id: { type: integer } - event_role_id: { type: integer } - apply_to: { type: string, enum: [this_event, this_and_upcoming_events], default: this_event } - example: - contact_ids: [5501, 5502] - guest_status_id: 12 - event_role_id: 4 + - name: event_category_id + in: query + required: true + description: The Event Format (Event Category) chosen for the event. + schema: + type: integer + example: 42 + - name: event_id + in: query + required: false + description: The event being edited, for the Edit Event form. + schema: + type: integer + example: 889 responses: - "201": - description: The guests were added + "200": + description: The form's fields and choices content: application/json: - schema: { $ref: '#/components/schemas/EventGuestCount' } + schema: + $ref: '#/components/schemas/EventForm' + example: + project: {id: 572, name: "Youth Mentoring Programme 2024"} + event_category: {id: 42, name: "Drop-in Session"} + event_id: null + fields: + - {name: name, kind: event_attribute, field_id: null, data_type: text, mandatory: true, priority: 0, validation_hint: null, dropdown: null} + - {name: start_datetime, kind: event_attribute, field_id: null, data_type: datetime, mandatory: true, priority: 1, validation_hint: null, dropdown: null} + - {name: end_datetime, kind: event_attribute, field_id: null, data_type: datetime, mandatory: true, priority: 2, validation_hint: null, dropdown: null} + - {name: "Room code", kind: custom_field, field_id: 311, data_type: text, mandatory: false, priority: 3, validation_hint: "Must contain exactly 3 letters and numbers", dropdown: null} + - name: "Session type" + kind: dropdown + field_id: 15 + data_type: dropdown + mandatory: true + priority: 4 + validation_hint: null + dropdown: + choice: limited_choice + choice_limit: 2 + options: [{id: 101, name: "Group"}, {id: 102, name: "One to one"}] + self_check_in: + enabled: true + surveys: [{project_story_category_id: 2053, story_category_id: 2136, name: "Attendance"}] + waves: [{id: 31, name: "Week 1", story_category_id: 2136, project_story_category_id: 2053}] + signup_pages: [{id: 88, name: "Book a place"}] + guest_statuses: [{id: 7, name: "Booked"}, {id: 8, name: "Waiting list"}] + event_roles: + enabled: false + guests: [] + event_managers_and_workers: [] "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/ForbiddenError' "404": $ref: '#/components/responses/NotFound' - "422": - $ref: '#/components/responses/UnprocessableEntityList' - /events/{id}/guests/{contact_id}: - patch: - tags: [Events] - summary: Change a guest's Guest Status or Event Role - operationId: updateEventGuest + /impact_store/search: + get: + tags: [ImpactStore] + summary: Search the ImpactStore + operationId: searchImpactStore description: | - Changes one guest's Guest Status (checking its requirements) and/or Event Role on this - event. Send `event_role_id: null` to clear the role. + Searches the Makerble ImpactStore: the ready-made Surveys, Contact Forms, Case Forms, Impact + Frameworks, Report Templates, Toolkits and Project Types published for any organisation to + reuse. Use it before making one of these from scratch. + + - Only published items are searched: those the Explore pages list (approved, shared with + everyone, and with a name and, except for Contact and Case Forms, a description), and every + Project Type, since only Makerble makes them. Withdrawn Report Templates never appear. + - Items matching more of the words in `query` come first; an item matching none of them is + left out. Common words such as "a", "for" and "the" are ignored. `matched_words` says how + many words each item matched. + - `item_type` limits the search to one kind: `survey` (Survey), `contact_form` (Contact + Form), `case_form` (Case Form), `impact_framework` (Impact Framework), `report_template` + (Report Template), `toolkit` (Toolkit) or `project_type` (Project Type). Front-end names + such as `Contact form` work too. Default: every kind. + - `cause` keeps items tagged with that cause or subcause from the Explore page (a cause takes + in its subcauses). Contact Forms, Case Forms, Report Templates and Project Types have no + causes, so a cause leaves them out. With a `cause`, `query` may be left out to list everything for the cause. + - `used_by_count` is how many organisations use the item: those with a Project using the + Survey, Impact Framework, Toolkit or Project Type, those that added the Contact Form, those + with a Case made from the Case Form, and those with the Report Template in their library. + - `explore_url` is null for a Project Type, which has no Explore page. + - Read any item but a Report Template in full with **Get a library item**, using the same + `type` and `id`. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - { name: contact_id, in: path, required: true, schema: { type: integer }, description: "The guest's Contact (beneficiary) id" } - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - guest_status_id: { type: integer } - event_role_id: { type: integer, nullable: true } - example: - guest_status_id: 13 + - name: query + in: query + required: false + schema: + type: string + example: wellbeing young people + description: Words to look for in the name and description + - name: item_type + in: query + required: false + schema: + type: string + enum: [survey, contact_form, case_form, impact_framework, report_template, toolkit, project_type] + description: Only this kind of item (default every kind) + - name: cause + in: query + required: false + schema: + type: string + example: Mental health + description: Only items tagged with this cause or subcause, by name, in any case + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: The guest was changed + description: Matching published items, best match first content: application/json: - schema: { $ref: '#/components/schemas/EventGuestCount' } + schema: + $ref: '#/components/schemas/PaginatedImpactStoreSearch' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 431 + type: survey + type_label: Survey + name: Youth wellbeing check-in + description: A short wellbeing survey for young people aged 11 to 18 + causes: [Health, Mental health] + used_by_count: 12 + explore_url: https://www.makerble.com/story_categories/431 + matched_words: 3 "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' - "404": - $ref: '#/components/responses/NotFound' "422": - $ref: '#/components/responses/UnprocessableEntityList' - delete: - tags: [Events] - summary: Remove a guest from an event - operationId: removeEventGuest + description: An unknown `item_type` or `cause` + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /explore/surveys: + get: + tags: [Explore] + summary: Explore Surveys + operationId: listExploreSurveys description: | - Removes the Contact from the event's guests. For an event in a recurring series, - `apply_to: this_and_upcoming_events` removes them from the later events too. + Lists the Surveys (Story Categories) published to the Makerble® ImpactStore™ and approved, + with the same search, filters, counts and sort as the Explore Surveys page. Every caller + sees the same Surveys; `yours` and `added_to_a_project` depend on the caller's organisations. + + - `query` matches the Survey's name or description. + - The filters take option keys, as arrays (`theme[]=health`) or comma-separated + (`theme=health,organisational`). Options in one filter combine with OR and filters + combine with AND: + - `theme`: `mental_health_and_wellbeing`, `children_and_young_people`, + `employment_and_skills`, `community_and_culture`, `health`, `organisational` + - `audience` (Who answers it): `children_under_16`, `young_people_16_to_25`, `adults`, + `staff_and_volunteers` + - `time` (Time to complete): `under_5`, `5_to_15`, `over_15` + - `feature`: `validated` (Validated scale), `verdicts` (Verdicts set up), `repeats` + (Repeat at intervals) + - `chip` is one of the page's Popular chips: `Wellbeing`, `Young people`, `Employment`, + `Feedback`, `Staff and volunteers`. + - `facets` gives each filter's options with how many Surveys each would return, given the + other filters already chosen. + - `sort` is `added` (most organisations using it first, the default), `new` or `az`. + - Add a Survey to a project in the app with **Add to a project** on Explore Surveys. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - { name: contact_id, in: path, required: true, schema: { type: integer }, description: "The guest's Contact (beneficiary) id" } - - { name: apply_to, in: query, required: false, schema: { type: string, enum: [this_event, this_and_upcoming_events], default: this_event } } + - name: query + in: query + required: false + schema: + type: string + example: wellbeing + description: Words to look for in the Survey's name or description + - name: theme + in: query + required: false + schema: + type: string + example: mental_health_and_wellbeing + description: Theme option keys, comma-separated or repeated as theme[] + - name: audience + in: query + required: false + schema: + type: string + example: children_under_16 + description: Who answers it option keys, comma-separated or repeated as audience[] + - name: time + in: query + required: false + schema: + type: string + example: under_5,5_to_15 + description: Time to complete option keys, comma-separated or repeated as time[] + - name: feature + in: query + required: false + schema: + type: string + example: validated + description: Feature option keys, comma-separated or repeated as feature[] + - name: chip + in: query + required: false + schema: + type: string + enum: [Wellbeing, Young people, Employment, Feedback, Staff and volunteers] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: The guest was removed + description: The listed Surveys that match, and each filter's option counts content: application/json: - schema: { $ref: '#/components/schemas/EventGuestCount' } + schema: + $ref: '#/components/schemas/PaginatedExploreSurveys' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 412 + name: Stirling Children's Wellbeing Scale + description: Positive emotional state and outlook for children aged 8 to 15. + shared_by: Makerble Templates + tag: Verdicts + question_count: 15 + estimated_minutes: 5 + themes: [mental_health_and_wellbeing, children_and_young_people] + audiences: [children_under_16] + repeats_at_intervals: true + validated: true + verdicts: true + libraries_count: 31 + yours: false + added_to_a_project: false + facets: + - key: audience + label: Who answers it + options: + - value: children_under_16 + label: Children under 16 + count: 1 + selected: true "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' - "404": - $ref: '#/components/responses/NotFound' - "422": - $ref: '#/components/responses/UnprocessableEntityList' - /events/{id}/staff: + /explore/surveys/{id}: get: - tags: [Events] - summary: List an event's Event Managers and Workers - operationId: listEventStaff + tags: [Explore] + summary: Preview an Explore Survey + operationId: getExploreSurvey description: | - The event's Event Managers and Event Workers, with their roles on the event and, when - the Event Format has Event Roles turned on, their Event Role. Anyone who can open the - event page can see them. + One Survey listed on Explore Surveys, as its Preview shows it: the fields of + **Explore Surveys** plus `sections`, each with its `title` (null for questions before the + first section header) and its `questions` in the order the Survey asks them. A Survey + that isn't listed on Explore (unpublished, unapproved or without a description) is a 404. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/PerPage' + - name: id + in: path + required: true + schema: + type: integer + example: 412 responses: "200": - description: A page of staff, by name + description: The Survey's preview content: application/json: schema: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: { $ref: '#/components/schemas/EventStaffMember' } + $ref: '#/components/schemas/ExploreSurveyPreview' + example: + id: 412 + name: Stirling Children's Wellbeing Scale + description: Positive emotional state and outlook for children aged 8 to 15. + shared_by: Makerble Templates + tag: Verdicts + question_count: 2 + estimated_minutes: 1 + themes: [mental_health_and_wellbeing] + audiences: [children_under_16] + repeats_at_intervals: true + validated: true + verdicts: true + libraries_count: 31 + yours: false + added_to_a_project: false + sections: + - title: Positive emotional state + questions: ["I've been feeling calm", "I've been in a good mood"] "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' "404": $ref: '#/components/responses/NotFound' - post: - tags: [Events] - summary: Add Event Managers or Workers - operationId: addEventStaff + /explore/report_templates: + get: + tags: [Explore] + summary: Explore Report Templates + operationId: listExploreReportTemplates description: | - Adds colleagues in the event's project or organisation as Event Managers or Event - Workers, as the Edit Event form does, respecting a fixed worker limit. `event_role_id` - must be one of the Event Format's Event Roles for Event Managers and Workers, and is - set on this event. For a master event, `apply_to: all_events_in_series` adds them to - the whole series. Needs permission to edit the event. + Lists the Report Templates in the Makerble® ImpactStore™, with the same search, filters, + counts and sort as the Explore Report Templates page. Every caller sees the same Report + Templates; `yours` and `in_your_library` depend on the caller's organisations. + + - `query` matches the Report Template's name or description, or the label of who it's for + or its theme. + - The filters take option keys, as arrays (`theme[]=community`) or comma-separated + (`theme=community,governance`). Options in one filter combine with OR and filters + combine with AND: + - `recipient` (Who it's for): `funder`, `trustees`, `local_authority` (Commissioner or + contract), `corporate_partner`, `internal` + - `theme`: `children_and_young_people`, `community`, `employment`, `governance`, + `health_and_wellbeing`, `volunteering` + - `output` (Answer formats): `narrative`, `number`, `chart`. A Report Template matches + when any of its questions asks for that format. + - `facets` gives each filter's options with how many Report Templates each would return, + given the other filters already chosen. + - `sort` is `added` (in the most organisations' libraries first, the default), `new` or `az`. + - Add a Report Template to your organisation's library in the app with **Add to your + library** on Explore Report Templates. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - requestBody: - required: true - content: - application/json: - schema: - type: object - required: [user_ids, role] - properties: - user_ids: { type: array, items: { type: integer } } - role: { type: string, enum: [manager, worker] } - event_role_id: { type: integer } - apply_to: { type: string, enum: [this_event, all_events_in_series], default: this_event } - example: - user_ids: [301] - role: worker - event_role_id: 7 + - name: query + in: query + required: false + schema: + type: string + example: end of grant + description: Words to look for in the Report Template's name, description, recipient or theme + - name: recipient + in: query + required: false + schema: + type: string + example: funder,trustees + description: Who it's for option keys, comma-separated or repeated as recipient[] + - name: theme + in: query + required: false + schema: + type: string + example: community + description: Theme option keys, comma-separated or repeated as theme[] + - name: output + in: query + required: false + schema: + type: string + example: chart + description: Answer format option keys, comma-separated or repeated as output[] + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: The event, as Get an event returns it + description: The listed Report Templates that match, and each filter's option counts content: application/json: schema: - $ref: '#/components/schemas/Event' + $ref: '#/components/schemas/PaginatedExploreReportTemplates' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 18 + slug: annual-grant-report-to-a-funder + name: Annual Grant Report to a Funder + description: The yearly report most grant funders ask for. + recipient: funder + theme: community + question_count: 5 + answer_formats: [narrative, number, chart] + shared_by: Makerble® ImpactStore™ + libraries_count: 31 + yours: false + in_your_library: false + facets: + - key: recipient + label: Who it's for + options: + - value: funder + label: Funder + count: 1 + selected: true "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' - "404": - $ref: '#/components/responses/NotFound' - "422": - $ref: '#/components/responses/UnprocessableEntityList' - - /events/{id}/staff/{user_id}: - patch: - tags: [Events] - summary: Change an Event Manager's or Worker's Event Role - operationId: updateEventStaffMember - description: "Sets or clears (`event_role_id: null`) the Event Role of one of the event's Event Managers or Workers." + /explore/report_templates/{id}: + get: + tags: [Explore] + summary: Preview an Explore Report Template + operationId: getExploreReportTemplate + description: | + One Report Template listed on Explore Report Templates, as its Preview shows it: the fields + of **Explore Report Templates** plus `questions`, each with its `title` and the + `answer_formats` it asks for, in order. A Report Template that isn't in the ImpactStore is a 404. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - { name: user_id, in: path, required: true, schema: { type: integer } } - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - event_role_id: { type: integer, nullable: true } - example: - event_role_id: 7 + - name: id + in: path + required: true + schema: + type: integer + example: 18 responses: "200": - description: The event, as Get an event returns it + description: The Report Template's preview content: application/json: schema: - $ref: '#/components/schemas/Event' + $ref: '#/components/schemas/ExploreReportTemplatePreview' + example: + id: 18 + slug: annual-grant-report-to-a-funder + name: Annual Grant Report to a Funder + description: The yearly report most grant funders ask for. + recipient: funder + theme: community + question_count: 2 + answer_formats: [narrative, number] + shared_by: Makerble® ImpactStore™ + libraries_count: 31 + yours: false + in_your_library: false + questions: + - title: What did you set out to achieve? + answer_formats: [narrative] + - title: Who did you reach? + answer_formats: [number] "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' "404": $ref: '#/components/responses/NotFound' - "422": - $ref: '#/components/responses/UnprocessableEntityList' - delete: - tags: [Events] - summary: Remove an Event Manager or Worker - operationId: removeEventStaffMember + /explore/dropdowns: + get: + tags: [Explore] + summary: Explore Dropdowns + operationId: listExploreDropdowns description: | - Removes the user as an Event Manager and/or Worker (`role` to remove only one). At - least one Event Manager must remain. For a master event, `apply_to: - all_events_in_series` removes them from the whole series. + Lists the Dropdowns (answer-choice lists, Ratio Sets) shared to the Makerble® ImpactStore™ + and approved, with the same search, filters, counts and sort as the Explore Dropdowns page. + Every caller sees the same Dropdowns; `yours` depends on the caller's organisations. + + - `query` matches the Dropdown's title or any of its answer choices. + - The filters take option keys, as arrays (`theme[]=scales`) or comma-separated + (`theme=scales,demographics`). Options in one filter combine with OR and filters + combine with AND: + - `designed_for`: `surveys_and_trackers`, `forms` (bio, event and project forms) + - `choices` (Number of choices): `up_to_10`, `11_to_100`, `over_100` + - `theme`: `scales`, `demographics` + - `chip` is one of the page's Popular chips: `Scales`, `Demographics`, `Equality monitoring`. + - `facets` gives each filter's options with how many Dropdowns each would return, given the + other filters already chosen. + - `sort` is `added` (used in the most surveys, trackers and forms first, the default), `new` + or `az`. + - Copy a Dropdown into your organisation in the app with **Add to organisation** on Explore + Dropdowns. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - { name: user_id, in: path, required: true, schema: { type: integer } } - - { name: role, in: query, required: false, schema: { type: string, enum: [manager, worker] } } - - { name: apply_to, in: query, required: false, schema: { type: string, enum: [this_event, all_events_in_series], default: this_event } } + - name: query + in: query + required: false + schema: + type: string + example: ethnicity + description: Words to look for in the Dropdown's title or answer choices + - name: designed_for + in: query + required: false + schema: + type: string + example: surveys_and_trackers + description: Designed for option keys, comma-separated or repeated as designed_for[] + - name: choices + in: query + required: false + schema: + type: string + example: up_to_10 + description: Number of choices option keys, comma-separated or repeated as choices[] + - name: theme + in: query + required: false + schema: + type: string + example: scales + description: Theme option keys, comma-separated or repeated as theme[] + - name: chip + in: query + required: false + schema: + type: string + enum: [Scales, Demographics, Equality monitoring] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: The event, as Get an event returns it + description: The listed Dropdowns that match, and each filter's option counts content: application/json: schema: - $ref: '#/components/schemas/Event' + $ref: '#/components/schemas/PaginatedExploreDropdowns' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 87 + title: Agreement scale + choice_count: 5 + designed_for: [surveys_and_trackers] + themes: [scales] + shared_by: Makerble Templates + used_in_count: 42 + yours: false + facets: + - key: theme + label: Theme + options: + - value: scales + label: Scales + count: 1 + selected: true "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' - "404": - $ref: '#/components/responses/NotFound' - "422": - $ref: '#/components/responses/UnprocessableEntityList' - - /projects/{id}/event_categories: + /explore/dropdowns/{id}: get: - tags: [Events] - summary: List the Event Formats you can create events with in a Project - description: >- - The Event Formats (Event Categories) assigned to the Project, which are the formats the - Create Event form offers there. Returns 403 unless you can create events in the Project: - it must have events turned on, and you must be an Organisation Admin, a Project Manager, - or a Project Reporter or Observer chosen as one of its Event Creators. - operationId: listProjectEventFormats + tags: [Explore] + summary: Preview an Explore Dropdown + operationId: getExploreDropdown + description: | + One Dropdown listed on Explore Dropdowns: the fields of **Explore Dropdowns** plus every + one of its answer `choices`, in order. A Dropdown that isn't listed on Explore (not shared + or not approved) is a 404. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - $ref: '#/components/parameters/Page' - - $ref: '#/components/parameters/PerPage' + - name: id + in: path + required: true + schema: + type: integer + example: 87 responses: "200": - description: The Project's Event Formats + description: The Dropdown and its answer choices content: application/json: schema: - $ref: '#/components/schemas/PaginatedProjectEventFormats' + $ref: '#/components/schemas/ExploreDropdownPreview' + example: + id: 87 + title: Agreement scale + choice_count: 5 + designed_for: [surveys_and_trackers] + themes: [scales] + shared_by: Makerble Templates + used_in_count: 42 + yours: false + choices: [Strongly disagree, Disagree, Not sure, Agree, Strongly agree] "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' "404": $ref: '#/components/responses/NotFound' - - /projects/{id}/event_form: + /explore/impact_frameworks: get: - tags: [Events] - summary: Get the Create or Edit Event form for an Event Format in a Project - description: >- - Everything the Create Event form offers once an Event Format is chosen: its fields (event - details, custom fields and Dropdowns with their answer choices), the Surveys and Waves - available for Self Check-in, the Project's Signup Pages, the Guest Statuses a Signup Page - can put guests into, and the Event Roles. Pass event_id to get the Edit Event form for an - existing event, which also allows the Event Format the event already uses. Returns 403 - unless you can create events in the Project, or edit the event. - operationId: getEventForm + tags: [Explore] + summary: Explore Impact Frameworks + operationId: listExploreImpactFrameworks + description: | + Lists the public, approved Impact Frameworks (Templates) in the Makerble® ImpactStore™, with + the same search, filters, counts and sort as the Explore Impact Frameworks page. Every caller + sees the same Impact Frameworks; `yours` depends on the caller's organisations. + + - `query` matches the Impact Framework's name or description. + - The filters take option keys, as arrays (`theme[]=inclusion`) or comma-separated + (`theme=inclusion,leadership`). Options in one filter combine with OR and filters + combine with AND: + - `theme`: `mental_health_and_wellbeing`, `children_and_young_people`, `employment_and_skills`, `community_and_culture`, `health`, `organisational`, `global_goals`, `inclusion`, `education_and_training`, `leadership` + - `set` (Part of a Framework Set): a platform-wide Framework Set's id, or `none` for + frameworks in no set. `facets` lists the sets. + - `size`: `up_to_5`, `6_to_10`, `over_10` outcomes + - `chip` is one of the page's Popular chips: `SDGs`, `Inclusion`, `Employment`, `Wellbeing`. + - `facets` gives each filter's options with how many Impact Frameworks each would return, + given the other filters already chosen. + - `sort` is `added` (on the most organisations' projects first, the default), `new` or `az`. + - Add an Impact Framework to projects in the app with **Add to projects** on Explore Impact + Frameworks. security: [{tokenAuth: []}] parameters: - - $ref: '#/components/parameters/ResourceId' - - name: event_category_id + - name: query in: query - required: true - description: The Event Format (Event Category) chosen for the event. + required: false schema: - type: integer - example: 42 - - name: event_id + type: string + example: inclusion + description: Words to look for in the Impact Framework's name or description + - name: theme in: query required: false - description: The event being edited, for the Edit Event form. schema: - type: integer - example: 889 + type: string + example: global_goals + description: Theme option keys, comma-separated or repeated as theme[] + - name: set + in: query + required: false + schema: + type: string + example: none + description: Framework Set ids or none, comma-separated or repeated as set[] + - name: size + in: query + required: false + schema: + type: string + example: up_to_5 + description: Size option keys, comma-separated or repeated as size[] + - name: chip + in: query + required: false + schema: + type: string + enum: [SDGs, Inclusion, Employment, Wellbeing] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: The form's fields and choices + description: The listed Impact Frameworks that match, and each filter's option counts content: application/json: schema: - $ref: '#/components/schemas/EventForm' + $ref: '#/components/schemas/PaginatedExploreImpactFrameworks' example: - project: {id: 572, name: "Youth Mentoring Programme 2024"} - event_category: {id: 42, name: "Drop-in Session"} - event_id: null - fields: - - {name: name, kind: event_attribute, field_id: null, data_type: text, mandatory: true, priority: 0, validation_hint: null, dropdown: null} - - {name: start_datetime, kind: event_attribute, field_id: null, data_type: datetime, mandatory: true, priority: 1, validation_hint: null, dropdown: null} - - {name: end_datetime, kind: event_attribute, field_id: null, data_type: datetime, mandatory: true, priority: 2, validation_hint: null, dropdown: null} - - {name: "Room code", kind: custom_field, field_id: 311, data_type: text, mandatory: false, priority: 3, validation_hint: "Must contain exactly 3 letters and numbers", dropdown: null} - - name: "Session type" - kind: dropdown - field_id: 15 - data_type: dropdown - mandatory: true - priority: 4 - validation_hint: null - dropdown: - choice: limited_choice - choice_limit: 2 - options: [{id: 101, name: "Group"}, {id: 102, name: "One to one"}] - self_check_in: - enabled: true - surveys: [{project_story_category_id: 2053, story_category_id: 2136, name: "Attendance"}] - waves: [{id: 31, name: "Week 1", story_category_id: 2136, project_story_category_id: 2053}] - signup_pages: [{id: 88, name: "Book a place"}] - guest_statuses: [{id: 7, name: "Booked"}, {id: 8, name: "Waiting list"}] - event_roles: - enabled: false - guests: [] - event_managers_and_workers: [] + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 301 + name: Quality Education + description: Outcomes for SDG 4. + themes: [global_goals, children_and_young_people] + framework_sets: + - id: 2 + name: UN Sustainable Development Goals + short_code: SDG 4 + outcome_count: 10 + progress_tracker_count: 3 + shared_by: Makerble Templates + libraries_count: 15 + yours: false + facets: + - key: size + label: Size + options: + - value: 6_to_10 + label: 6 to 10 outcomes + count: 1 + selected: true + "401": + $ref: '#/components/responses/Unauthorized' + /explore/impact_frameworks/{id}: + get: + tags: [Explore] + summary: Preview an Explore Impact Framework + operationId: getExploreImpactFramework + description: | + One Impact Framework listed on Explore Impact Frameworks, as its Preview shows it: the fields + of **Explore Impact Frameworks** plus `stages`, each stage of change with its `title` + (Activities, Engagement, Ability, Behaviour or Effect) and the outcomes and progress trackers + in it as `items`. An Impact Framework that isn't public and approved is a 404. + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: + type: integer + example: 301 + responses: + "200": + description: The Impact Framework's preview + content: + application/json: + schema: + $ref: '#/components/schemas/ExploreImpactFrameworkPreview' + example: + id: 301 + name: Quality Education + description: Outcomes for SDG 4. + themes: [global_goals] + framework_sets: [] + outcome_count: 1 + progress_tracker_count: 1 + shared_by: Makerble Templates + libraries_count: 15 + yours: false + stages: + - title: Activities + items: [Sessions delivered] + - title: Behaviour (mid-term outcomes) + items: [Stays in school] "401": $ref: '#/components/responses/Unauthorized' - "403": - $ref: '#/components/responses/ForbiddenError' "404": $ref: '#/components/responses/NotFound' - - /impact_store/search: + /explore/ideas: get: - tags: [ImpactStore] - summary: Search the ImpactStore - operationId: searchImpactStore + tags: [Explore] + summary: Explore Ideas + operationId: listExploreIdeas description: | - Searches the Makerble ImpactStore: the ready-made Surveys, Contact Forms, Case Forms, Impact - Frameworks, Report Templates, Toolkits and Project Types published for any organisation to - reuse. Use it before making one of these from scratch. + Lists the approved Ideas (Tips) shared with everyone in the Makerble® ImpactStore™, with the + same search, filters, counts and sort as the Explore Ideas page. `shared_by`, `person` and + `yours` depend on the caller. - - Only published items are searched: those the Explore pages list (approved, shared with - everyone, and with a name and, except for Contact and Case Forms, a description), and every - Project Type, since only Makerble makes them. Withdrawn Report Templates never appear. - - Items matching more of the words in `query` come first; an item matching none of them is - left out. Common words such as "a", "for" and "the" are ignored. `matched_words` says how - many words each item matched. - - `item_type` limits the search to one kind: `survey` (Survey), `contact_form` (Contact - Form), `case_form` (Case Form), `impact_framework` (Impact Framework), `report_template` - (Report Template), `toolkit` (Toolkit) or `project_type` (Project Type). Front-end names - such as `Contact form` work too. Default: every kind. - - `cause` keeps items tagged with that cause or subcause from the Explore page (a cause takes - in its subcauses). Contact Forms, Case Forms, Report Templates and Project Types have no - causes, so a cause leaves them out. With a `cause`, `query` may be left out to list everything for the cause. - - `used_by_count` is how many organisations use the item: those with a Project using the - Survey, Impact Framework, Toolkit or Project Type, those that added the Contact Form, those - with a Case made from the Case Form, and those with the Report Template in their library. - - `explore_url` is null for a Project Type, which has no Explore page. - - Read any item but a Report Template in full with **Get a library item**, using the same - `type` and `id`. + - `query` matches the Idea's title or text. + - The filters take option keys, as arrays (`theme[]=leadership`) or comma-separated + (`theme=leadership,inclusion`). Options in one filter combine with OR and filters + combine with AND: + - `shared_by`: `anyone`, `colleagues` (colleagues in the caller's organisations and + projects, or the organisations themselves), `following` (people the caller follows), + `me` + - `theme`: `mental_health_and_wellbeing`, `children_and_young_people`, `employment_and_skills`, `community_and_culture`, `health`, `organisational`, `global_goals`, `inclusion`, `education_and_training`, `leadership` + - `audience`: `public_impact`, `personal`, `professional`, from the Idea's causes + - `person`: user ids of people who shared Ideas. Only the caller's colleagues, people + they follow and the caller count; any other id is ignored. + - `chip` is one of the page's Popular chips: `Community`, `Young people`, `Training`, + `Leadership`. + - `facets` gives each filter's options with how many Ideas each would return, given the + other filters already chosen. + - `sort` is `added` (saved to the most collections first, the default), `new` or `az`. + - Save an Idea to a collection in the app with **Save idea** on Explore Ideas. security: [{tokenAuth: []}] parameters: - name: query @@ -10378,82 +12155,150 @@ paths: required: false schema: type: string - example: wellbeing young people - description: Words to look for in the name and description - - name: item_type + example: cohesion + description: Words to look for in the Idea's title or text + - name: shared_by in: query required: false schema: type: string - enum: [survey, contact_form, case_form, impact_framework, report_template, toolkit, project_type] - description: Only this kind of item (default every kind) - - name: cause + example: colleagues,following + description: Shared by option keys, comma-separated or repeated as shared_by[] + - name: theme in: query required: false schema: type: string - example: Mental health - description: Only items tagged with this cause or subcause, by name, in any case + example: leadership + description: Theme option keys, comma-separated or repeated as theme[] + - name: audience + in: query + required: false + schema: + type: string + example: public_impact + description: Audience option keys, comma-separated or repeated as audience[] + - name: person + in: query + required: false + schema: + type: string + example: "1204" + description: User ids of people who shared Ideas, comma-separated or repeated as person[] + - name: chip + in: query + required: false + schema: + type: string + enum: [Community, Young people, Training, Leadership] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [added, new, az] + default: added + description: Most added, Newest, or A to Z - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: Matching published items, best match first + description: The listed Ideas that match, and each filter's option counts content: application/json: schema: - $ref: '#/components/schemas/PaginatedImpactStoreSearch' + $ref: '#/components/schemas/PaginatedExploreIdeas' example: page: 1 page_size: 1 page_count: 1 total_count: 1 data: - - id: 431 - type: survey - type_label: Survey - name: Youth wellbeing check-in - description: A short wellbeing survey for young people aged 11 to 18 - causes: [Health, Mental health] - used_by_count: 12 - explore_url: https://www.makerble.com/story_categories/431 - matched_words: 3 + - id: 77 + title: The Resident Leadership Pipeline + themes: [leadership, community_and_culture] + reading_minutes: 4 + shared_by: Northside Housing + saved_count: 14 + yours: false + facets: + - key: theme + label: Theme + options: + - value: leadership + label: Leadership + count: 1 + selected: true "401": $ref: '#/components/responses/Unauthorized' - "422": - description: An unknown `item_type` or `cause` + /explore/ideas/{id}: + get: + tags: [Explore] + summary: Read an Explore Idea + operationId: getExploreIdea + description: | + One Idea listed on Explore Ideas: the fields of **Explore Ideas** plus its `text`, without + formatting. An Idea that isn't approved and shared with everyone is a 404. + security: [{tokenAuth: []}] + parameters: + - name: id + in: path + required: true + schema: + type: integer + example: 77 + responses: + "200": + description: The Idea and its text content: application/json: schema: - $ref: '#/components/schemas/Error' - /explore/surveys: + $ref: '#/components/schemas/ExploreIdeaPreview' + example: + id: 77 + title: The Resident Leadership Pipeline + themes: [leadership] + reading_minutes: 1 + shared_by: Northside Housing + saved_count: 14 + yours: false + text: We grew resident leaders who now run three local groups. + "401": + $ref: '#/components/responses/Unauthorized' + "404": + $ref: '#/components/responses/NotFound' + /explore/metrics: get: tags: [Explore] - summary: Explore Surveys - operationId: listExploreSurveys - description: | - Lists the Surveys (Story Categories) published to the Makerble® ImpactStore™ and approved, - with the same search, filters, counts and sort as the Explore Surveys page. Every caller - sees the same Surveys; `yours` and `added_to_a_project` depend on the caller's organisations. - - - `query` matches the Survey's name or description. - - The filters take option keys, as arrays (`theme[]=health`) or comma-separated - (`theme=health,organisational`). Options in one filter combine with OR and filters + summary: Explore Metrics + operationId: listExploreMetrics + description: | + Lists the published, approved metrics of the Makerble® ImpactStore™ across the stages of + change, with the same search, filters, counts and sort as the Explore Metrics page: + progress trackers (`kind` `change`: Activities and Engagement), outcome indicators (`kind` + `indicator`: Ability, Behaviour and Effect, taking the stage of the Outcome they sit under + when they have none of their own) and Financial Values (`kind` `financial_value`). Every + caller sees the same metrics; `yours` depends on the caller's organisations. + + - `query` matches the metric's name or description. + - The filters take option keys, as arrays (`stage[]=ability`) or comma-separated + (`stage=ability,behaviour`). Options in one filter combine with OR and filters combine with AND: - - `theme`: `mental_health_and_wellbeing`, `children_and_young_people`, - `employment_and_skills`, `community_and_culture`, `health`, `organisational` - - `audience` (Who answers it): `children_under_16`, `young_people_16_to_25`, `adults`, - `staff_and_volunteers` - - `time` (Time to complete): `under_5`, `5_to_15`, `over_15` - - `feature`: `validated` (Validated scale), `verdicts` (Verdicts set up), `repeats` - (Repeat at intervals) - - `chip` is one of the page's Popular chips: `Wellbeing`, `Young people`, `Employment`, - `Feedback`, `Staff and volunteers`. - - `facets` gives each filter's options with how many Surveys each would return, given the + - `stage` (Stage of change): `activities`, `engagement`, `ability`, `behaviour`, + `effect`, `financial_values` + - `answer_format`: `count` (progress tracker), `scale` (Choice tracker), `yes_no` + (Achievement tracker), `value` (Numerical tracker, and Financial Values) + - `audience`: `public_impact`, `personal`, `professional` + - `shared_by`: `makerble`, `others` + - `chip` is one of the page's Popular chips: `Wellbeing`, `Employment`, `Housing`, + `Attendance`, `SDGs`. + - `facets` gives each filter's options with how many metrics each would return, given the other filters already chosen. - - `sort` is `added` (most organisations using it first, the default), `new` or `az`. - - Add a Survey to a project in the app with **Add to a project** on Explore Surveys. + - `sort` is `added` (on the most organisations' projects first, the default), `new` or `az`. + - Add a tracker or indicator to a project in the app with **Add to a project** on Explore + Metrics; a Financial Value from Explore Financial Values. security: [{tokenAuth: []}] parameters: - name: query @@ -10461,42 +12306,42 @@ paths: required: false schema: type: string - example: wellbeing - description: Words to look for in the Survey's name or description - - name: theme + example: confidence + description: Words to look for in the metric's name or description + - name: stage in: query required: false schema: type: string - example: mental_health_and_wellbeing - description: Theme option keys, comma-separated or repeated as theme[] - - name: audience + example: ability,behaviour + description: Stage of change option keys, comma-separated or repeated as stage[] + - name: answer_format in: query required: false schema: type: string - example: children_under_16 - description: Who answers it option keys, comma-separated or repeated as audience[] - - name: time + example: scale + description: Answer format option keys, comma-separated or repeated as answer_format[] + - name: audience in: query required: false schema: type: string - example: under_5,5_to_15 - description: Time to complete option keys, comma-separated or repeated as time[] - - name: feature + example: personal + description: Audience option keys, comma-separated or repeated as audience[] + - name: shared_by in: query required: false schema: type: string - example: validated - description: Feature option keys, comma-separated or repeated as feature[] + example: makerble + description: Shared by option keys, comma-separated or repeated as shared_by[] - name: chip in: query required: false schema: type: string - enum: [Wellbeing, Young people, Employment, Feedback, Staff and volunteers] + enum: [Wellbeing, Employment, Housing, Attendance, SDGs] description: One of the Popular chips - name: sort in: query @@ -10511,87 +12356,83 @@ paths: - $ref: '#/components/parameters/LastSyncDatetime' responses: "200": - description: The listed Surveys that match, and each filter's option counts + description: The listed metrics that match, and each filter's option counts content: application/json: schema: - $ref: '#/components/schemas/PaginatedExploreSurveys' + $ref: '#/components/schemas/PaginatedExploreMetrics' example: page: 1 page_size: 1 page_count: 1 total_count: 1 data: - - id: 412 - name: Stirling Children's Wellbeing Scale - description: Positive emotional state and outlook for children aged 8 to 15. - shared_by: Makerble Templates - tag: Verdicts - question_count: 15 - estimated_minutes: 5 - themes: [mental_health_and_wellbeing, children_and_young_people] - audiences: [children_under_16] - repeats_at_intervals: true - validated: true - verdicts: true - libraries_count: 31 + - kind: indicator + id: 5310 + name: Job satisfaction + stage: ability + whats_inside: 5-level scale + shared_by: Makerble + libraries_count: 21 yours: false - added_to_a_project: false facets: - - key: audience - label: Who answers it + - key: answer_format + label: Answer format options: - - value: children_under_16 - label: Children under 16 + - value: scale + label: Scale (Choice tracker) count: 1 selected: true "401": $ref: '#/components/responses/Unauthorized' - - /explore/surveys/{id}: + /explore/metrics/{kind}/{id}: get: tags: [Explore] - summary: Preview an Explore Survey - operationId: getExploreSurvey + summary: Preview an Explore Metric + operationId: getExploreMetric description: | - One Survey listed on Explore Surveys, as its Preview shows it: the fields of - **Explore Surveys** plus `sections`, each with its `title` (null for questions before the - first section header) and its `questions` in the order the Survey asks them. A Survey - that isn't listed on Explore (unpublished, unapproved or without a description) is a 404. + One metric listed on Explore Metrics, as its Preview shows it: the fields of **Explore + Metrics** plus its `description`, `details` (its key facts by label, such as the Outcomes an + indicator sits under or a Financial Value's amount and source) and the `choices` of a scale + or yes-or-no indicator, in order. A metric that isn't published and approved is a 404. security: [{tokenAuth: []}] parameters: + - name: kind + in: path + required: true + schema: + type: string + enum: [change, indicator, financial_value] + example: indicator - name: id in: path required: true schema: type: integer - example: 412 + example: 5310 responses: "200": - description: The Survey's preview + description: The metric's preview content: application/json: schema: - $ref: '#/components/schemas/ExploreSurveyPreview' + $ref: '#/components/schemas/ExploreMetricPreview' example: - id: 412 - name: Stirling Children's Wellbeing Scale - description: Positive emotional state and outlook for children aged 8 to 15. - shared_by: Makerble Templates - tag: Verdicts - question_count: 2 - estimated_minutes: 1 - themes: [mental_health_and_wellbeing] - audiences: [children_under_16] - repeats_at_intervals: true - validated: true - verdicts: true - libraries_count: 31 + kind: indicator + id: 5310 + name: Job satisfaction + stage: ability + whats_inside: 5-level scale + shared_by: Makerble + libraries_count: 21 yours: false - added_to_a_project: false - sections: - - title: Positive emotional state - questions: ["I've been feeling calm", "I've been in a good mood"] + description: How satisfied someone is with their job. + details: + Answer format: 5-level scale + Stage of change: Ability (short-term outcomes) + Sits under: Job satisfaction at follow-up + Shared by: Makerble + choices: [Very dissatisfied, Dissatisfied, Neither, Satisfied, Very satisfied] "401": $ref: '#/components/responses/Unauthorized' "404": @@ -15242,16 +17083,129 @@ paths: project_id: 821 active: false responses: - "201": - description: The new Contact Automation on the Project + "201": + description: The new Contact Automation on the Project + content: + application/json: + schema: + $ref: '#/components/schemas/ContactAutomation' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/Forbidden' + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntity' + + /formula_trackers/{id}/projects/{project_id}/results: + get: + tags: [Formula Trackers] + summary: Get a Formula Tracker's result on a Project + description: | + A Formula Tracker's result on a Project's Results Canvas: what its card shows, and what its popup + opens. The tracker must be on the Project. + + Each timeframe is worked out from that timeframe's own tracker numbers, so a Year to Date + percentage is the Year to Date numerator ÷ the Year to Date denominator, never an average of the + periods. `number` is null, and `display_value` is "–", when a tracker the formula uses has no + result or it divides by 0 (the canvas says "Not enough data to work this out yet"). + `display_value` is the result as the canvas shows it, from the tracker's display format, decimal + places and unit label. + + `result_kind` `additive` (only + and − of trackers that add up) adds up across periods. + `snapshot` (× ÷ or a number) is read as of `as_of`: the window's last day, or today while that is + still to come. `target` is the deadline targets dated in the window, added up (for a snapshot, + the one on its last day), or else the one-off target, or null. + + `trackers` lists each tracker the formula uses with its number for the window; `formula` writes + the formula out in words and `formula_with_values` with those numbers in place. + + When the formula only adds Workflow Trackers that count items (`itemised: true`, e.g. External + referrals + Internal referrals), `data` lists one page of the items counted, newest first. An item + the user may not see is counted in `hidden_count` for that page but never listed. Otherwise `data` + is empty and the counts are 0. Requires the same rights as viewing that Results Canvas. + operationId: getFormulaTrackerProjectResults + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - $ref: '#/components/parameters/CohortTrackerProjectId' + - $ref: '#/components/parameters/CohortTrackerTimeframe' + - $ref: '#/components/parameters/CohortTrackerAsOf' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + responses: + "200": + description: The result and the trackers behind it + content: + application/json: + schema: + $ref: '#/components/schemas/FormulaTrackerResult' + example: + formula_tracker_id: 12 + name: "% of children receiving support" + project_id: 34 + timeframe: year_to_date + starts_on: "2026-01-01" + ends_on: "2026-12-31" + result_kind: snapshot + as_of: "2026-10-13" + display_format: percentage + decimal_places: 1 + unit: percentage + number: 50 + display_value: "50.0%" + target: 60 + formula: "% of children receiving support = Children supported ÷ Children flagged × 100" + formula_with_values: "4 ÷ 8 × 100" + trackers: + - { type: Change, id: 81, name: Children supported, type_name: Engagement tracker, unit: count, number: 4 } + - { type: Change, id: 82, name: Children flagged, type_name: Engagement tracker, unit: count, number: 8 } + itemised: false + page: 1 + page_size: 0 + page_count: 0 + total_count: 0 + hidden_count: 0 + data: [] + "401": + $ref: '#/components/responses/Unauthorized' + "403": + description: The user can't see this Project's Results Canvas + "404": + $ref: '#/components/responses/NotFound' + "422": + $ref: '#/components/responses/UnprocessableEntity' + + /formula_trackers/{id}/albums/{bundle_id}/results: + get: + tags: [Formula Trackers] + summary: Get a Formula Tracker's result on an Album + description: | + As for a Project, with each tracker the formula uses worked out on the Album as a whole (its open + Projects together) before the formula is applied, so an Album percentage is the Album's numerator + ÷ the Album's denominator, not the Projects' percentages added up. The tracker must be on one of + the Album's Projects. Requires rights to see the Album. + operationId: getFormulaTrackerAlbumResults + security: [{tokenAuth: []}] + parameters: + - $ref: '#/components/parameters/ResourceId' + - $ref: '#/components/parameters/CohortTrackerAlbumId' + - $ref: '#/components/parameters/CohortTrackerTimeframe' + - $ref: '#/components/parameters/CohortTrackerAsOf' + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + responses: + "200": + description: The result and the trackers behind it content: application/json: schema: - $ref: '#/components/schemas/ContactAutomation' + $ref: '#/components/schemas/FormulaTrackerResult' "401": $ref: '#/components/responses/Unauthorized' "403": - $ref: '#/components/responses/Forbidden' + description: The user can't see this Album "404": $ref: '#/components/responses/NotFound' "422": @@ -18232,8 +20186,14 @@ paths: summary: Register a webhook endpoint description: | Starts sending the chosen events to an HTTPS URL. Leave out `event_types` to send every - event. An Organisation can have at most 10 endpoints. The response includes the signing - `secret`, which is shown only this once. + event, or give one event for a trigger that fires on that event only. An Organisation can + have at most 10 endpoints added this way, and separately at most 100 created by automation + platforms such as Power Automate (one per flow). The response includes the signing `secret`, + which is shown only this once, and a `Location` header with the endpoint's full address: + send `DELETE` to it to unsubscribe. + + Power Automate flows can't check the signature themselves. They rely instead on the callback + address being secret, which Microsoft generates for each flow. operationId: createWebhookEndpoint security: [{tokenAuth: []}] requestBody: @@ -18251,6 +20211,12 @@ paths: responses: "201": description: Endpoint created, with its secret + headers: + Location: + description: Full address of the new endpoint, e.g. `https://app.makerble.com/api/v2/webhook_endpoints/42` + schema: + type: string + format: uri content: application/json: schema: @@ -18322,18 +20288,19 @@ paths: delete: tags: [Webhooks] summary: Delete a webhook endpoint - description: Deletes the endpoint and its delivery log. Makerble stops sending to it at once. + description: | + Deletes the endpoint and its delivery log. Makerble stops sending to it at once. Deleting is + idempotent: an endpoint that is already deleted, or that the user can't see, also answers + `204`, so an automation platform can unsubscribe safely more than once. operationId: deleteWebhookEndpoint security: [{tokenAuth: []}] responses: "204": - description: Deleted + description: Deleted, or already gone "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/WebhooksNotTurnedOn' - "404": - $ref: '#/components/responses/NotFound' /webhook_endpoints/{id}/rotate_secret: parameters: @@ -18649,6 +20616,59 @@ paths: $ref: '#/components/responses/NotFound' "422": $ref: '#/components/responses/UnprocessableEntity' + /health: + get: + tags: [Health] + summary: Check the service is up and which build is running + operationId: getHealth + description: | + Reports whether the service and its database are answering, and which build + is running. No sign-in is needed: send no `X-User-Email` / `X-User-Token`. + + Use `commit` to tell when a new release is live: after a deploy finishes it + changes to the new build's commit, and `uptime_seconds` starts again from a + small number. `commit` and `built_at` are `null` when the build didn't record + them. Always answers `200` while the service is running; check `database` + to see whether the database is reachable. + security: [] + responses: + "200": + description: The service is running + content: + application/json: + schema: + type: object + required: [status, database, commit, built_at, environment] + properties: + status: + type: string + enum: [ok] + description: Always `ok` when the service answers + database: + type: boolean + description: Whether the database answered a trivial query + uptime_seconds: + type: integer + description: Seconds since the running app started + commit: + type: string + nullable: true + description: Full git commit SHA the running build was made from + built_at: + type: string + format: date-time + nullable: true + description: When the running build was made, ISO 8601 in UTC + environment: + type: string + description: Which environment answered, e.g. `production`, `pre-production`, `qa`, `preview` + example: + status: ok + database: true + uptime_seconds: 312 + commit: "0123456789abcdef0123456789abcdef01234567" + built_at: "2026-10-12T13:05:09Z" + environment: production components: @@ -18666,6 +20686,19 @@ components: description: | An Organisation API key (`mk_live_...`), sent as `Authorization: Bearer mk_live_...`. It acts as the colleague chosen when it was created, in its Organisation only. See "Organisation API keys" above. + oauth2: + type: oauth2 + description: | + OAuth 2.0 authorisation code flow for connected apps. The token is limited to the + organisation the user chose on the consent screen, with that user's permissions. + See "Connecting an app with OAuth 2.0" above. + flows: + authorizationCode: + authorizationUrl: https://makerble.com/oauth/authorize + tokenUrl: https://makerble.com/oauth/token + refreshUrl: https://makerble.com/oauth/token + scopes: + api: The same access as the user who connected the app, in the organisation they chose submissionBearerAuth: type: http scheme: bearer @@ -18854,6 +20887,33 @@ components: description: Also include Indicators or Outcomes from the public library shared by all organisations (default false) responses: + + EventFormatAdminOnly: + description: You are not an Organisation Admin of the organisation that owns the Event Format + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "Only an Organisation Admin can manage Event Formats." + + PortalLinksForbidden: + description: You don't have permission for this project's Portal links + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "You don't have permission to send Portal links in this project." + + EventCatalogueForbidden: + description: You don't have permission for this organisation's or project's Event Catalogues + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "You don't have permission to manage this organisation's Event Catalogues." SetupGuideForbidden: description: You aren't an Organisation Admin of this Organisation, or its Setup guide is switched off content: @@ -18973,6 +21033,14 @@ components: example: success: false errors: "Permission denied." + AddColleagueForbidden: + description: You aren't a Project Manager of one of the listed Projects or an Organisation Admin of its Organisation. Nobody is added to any of them. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + example: + error: "You don't have permission to add users to project 619." UnprocessableEntity: description: Validation failed content: @@ -19001,13 +21069,22 @@ components: example: error: forbidden WebhooksNotTurnedOn: - description: Webhooks are not turned on for this Organisation yet + description: | + The user is a member of the Organisation but not an Organisation Admin, or webhooks are not + turned on for the Organisation yet. `error` says which, in words that can be shown to the + user. For a request from an automation platform such as Power Automate, the first reads + "Only an Organisation Admin can create Makerble triggers". content: application/json: schema: $ref: '#/components/schemas/Error' - example: - error: "Webhooks are not turned on for this organisation" + examples: + notAnAdmin: + value: + error: "Only an Organisation Admin can manage Webhooks" + notTurnedOn: + value: + error: "Webhooks are not turned on for this organisation" schemas: SetupGuide: @@ -19330,439 +21407,885 @@ components: type: array items: type: string - description: | - Makerble's own only (System Access users). The pages it shows on, by the key of each page's - Show/Hide Guidance panel: for example `contacts` (Manage Contacts), `events`, `checklists` or - `surveys`. Someone sees it when they open one of those pages, including when they move between - pages without reloading. Pages without a guidance panel have no key and can't be chosen. An - empty list (the default) means any page. An unknown key is refused with 422, listing the keys - available. Sent, it replaces - the list. - example: [contacts] + description: | + Makerble's own only (System Access users). The pages it shows on, by the key of each page's + Show/Hide Guidance panel: for example `contacts` (Manage Contacts), `events`, `checklists` or + `surveys`. Someone sees it when they open one of those pages, including when they move between + pages without reloading. Pages without a guidance panel have no key and can't be chosen. An + empty list (the default) means any page. An unknown key is refused with 422, listing the keys + available. Sent, it replaces + the list. + example: [contacts] + starts_on: + type: string + format: date + description: Required to schedule. + ends_on: + type: string + format: date + description: Required to schedule; not before `starts_on`. + status: + type: string + enum: [draft, scheduled] + description: On create, defaults to `draft`. On update, defaults to the current status. + schedule_on_next_free_days: + type: boolean + description: | + Makerble's own only (422 for an Organisation's, Workspace's or Team's). Schedules the + announcement from the first day, from today, on which no other Makerble announcement starts, + keeping its own length (14 days if it has no dates yet). Any `status`, `starts_on` and `ends_on` + sent are replaced. People see at most one Makerble announcement a day, so this keeps + announcements from queuing behind each other. Use it to schedule a feature's announcement + once the feature is live on production. + AnnouncementFact: + type: object + properties: + key: + type: string + description: 'What a rule names, e.g. `{"fact": "distance_travelled_not_set_up"}`' + label: + type: string + description: Completes "people ..." in Site Overview's "Who sees this" + description: + type: string + params: + type: object + description: Each param by name, with the values it accepts, its default and what it means + additionalProperties: + type: object + properties: + values: + type: array + items: + type: string + default: + type: string + description: + type: string + DeepLink: + type: object + properties: + name: + type: string + example: checklists + description: The link's name. Never changes, since User Guide articles link to it. + label: + type: string + example: Checklists + group: + type: string + example: Checklists + role: + type: string + enum: [user, member, editor] + description: The role the person needs in their organisation to open the page. + record: + type: boolean + description: True when the link opens one record (the first the person can see), falling back to a page. + PaginatedDeepLinks: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/DeepLink' + PaginatedAnnouncementFacts: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/AnnouncementFact' + Announcement: + type: object + properties: + id: + type: integer + scope_type: + type: string + enum: [Charity, Project, Team, null] + nullable: true + description: | + Whose announcement it is: an Organisation (`Charity`), a Workspace (`Project`) or a Team. + Null for Makerble's own. Its audience is that place's colleagues: an Organisation's + colleagues, a Workspace's editors, reporters and observers, or a Team's members and leaders. + scope_id: + type: integer + nullable: true + training_material_id: + type: integer + nullable: true + description: >- + One of the place's Organisation's Training materials that the announcement links to (shown only to + colleagues it is shared with), or null + feature_tour_id: + type: integer + nullable: true + description: >- + The feature tour the popup's button starts with "Take the tour" while the tour is live, or null + feature_launch_id: + type: integer + nullable: true + description: >- + The feature launch the announcement is for, or null. Its message, User Guide link, deep link and feature tour + are shown wherever the announcement's own are empty. + title: + type: string + body: + type: string + nullable: true + description: The announcement's own message; null when it shows its feature launch's short description + visual_type: + type: string + enum: [name_change, vimeo, image, intro_animation, storyboard, none] + name_changes: + type: array + items: + $ref: '#/components/schemas/AnnouncementNameChange' + vimeo_url: + type: string + nullable: true + learn_more_url: + type: string + nullable: true + button_label: + type: string + audience: + type: string + enum: [everyone, colleagues, administrators] + roles: + type: array + items: + type: string + description: The roles that narrow who sees it, in place of `audience`; empty for none. See Create an Announcement. + audience_rules: + type: object + additionalProperties: true + description: Behaviour rules over named facts; `{}` for none. See Create an Announcement. + page_keys: + type: array + items: + type: string + description: The guidance panel keys of the pages it shows on; empty for any page. See Create an Announcement. + image_url: + type: string + nullable: true + description: For the `image` visual, a link to the uploaded image; null otherwise. + image_alt: + type: string + nullable: true + description: For the `image` visual, the image's alt text; null otherwise. + intro_key: + type: string + nullable: true + description: For `intro_animation`, the key of the Intro whose animation it plays; null otherwise. + storyboard: + type: object + nullable: true + additionalProperties: true + description: For `storyboard`, the announcement's own animation storyboard; null otherwise. starts_on: type: string format: date - description: Required to schedule. + nullable: true ends_on: type: string format: date - description: Required to schedule; not before `starts_on`. + nullable: true status: type: string enum: [draft, scheduled] - description: On create, defaults to `draft`. On update, defaults to the current status. - schedule_on_next_free_days: - type: boolean - description: | - Makerble's own only (422 for an Organisation's, Workspace's or Team's). Schedules the - announcement from the first day, from today, on which no other Makerble announcement starts, - keeping its own length (14 days if it has no dates yet). Any `status`, `starts_on` and `ends_on` - sent are replaced. People see at most one Makerble announcement a day, so this keeps - announcements from queuing behind each other. Use it to schedule a feature's announcement - once the feature is live on production. - AnnouncementFact: - type: object - properties: - key: + description: What is stored. See `current_status` for whether it is showing. + current_status: type: string - description: 'What a rule names, e.g. `{"fact": "distance_travelled_not_set_up"}`' - label: + enum: [draft, scheduled, live, ended] + description: "`live` while today is within the dates of a scheduled announcement, `ended` after them." + seen_count: + type: integer + description: People who have closed it. + seen_counts_by_source: + type: object + description: >- + Of those who have seen it, how many first saw it in the popup and how many by opening it in + Wishlist › What's new. + properties: + popup: + type: integer + whats_new: + type: integer + required: [popup, whats_new] + learn_more_click_count: + type: integer + description: People who clicked its "Learn more" link. + button_deep_link: type: string - description: Completes "people ..." in Site Overview's "Who sees this" - description: + nullable: true + description: The deep link the button opens, or null when it only closes the popup. + button_click_count: + type: integer + description: People who clicked the button through to its page. + created_by_id: + type: integer + nullable: true + updated_by_id: + type: integer + nullable: true + created_at: type: string - params: - type: object - description: Each param by name, with the values it accepts, its default and what it means - additionalProperties: - type: object - properties: - values: - type: array - items: - type: string - default: - type: string - description: - type: string - DeepLink: + format: date-time + updated_at: + type: string + format: date-time + TrainingMaterialInput: type: object properties: name: type: string - example: checklists - description: The link's name. Never changes, since User Guide articles link to it. - label: + maxLength: 120 + description: For example "How to add a new school". Required. + url: type: string - example: Checklists - group: + maxLength: 2048 + description: The document's link, starting https://. Required. + description: type: string - example: Checklists - role: + maxLength: 280 + nullable: true + description: One or two lines saying who it is for + material_type: type: string - enum: [user, member, editor] - description: The role the person needs in their organisation to open the page. - record: + enum: [document, video] + description: Shown as an icon. Defaults to document. + all_organisation: type: boolean - description: True when the link opens one record (the first the person can see), falling back to a page. - PaginatedDeepLinks: + description: For everyone in the Organisation + team_ids: + type: array + items: { type: integer } + description: The Organisation's Teams it is for + project_ids: + type: array + items: { type: integer } + description: The Organisation's Workspaces (Projects) it is for + owner_id: + type: integer + description: The person to ask about it. An Organisation Admin of the Organisation, or the caller. + Unavailability: type: object + description: A range when a colleague can't work for an Organisation (Staff availability page) properties: - page: - type: integer - page_size: - type: integer - page_count: - type: integer - total_count: - type: integer - data: + id: { type: integer } + user_id: { type: integer } + charity_id: { type: integer } + starts_at: { type: string, format: date-time } + ends_at: + type: string + format: date-time + description: For an all-day range, the end of `to_date` in the Organisation's timezone + all_day: { type: boolean } + from_date: { type: string, format: date, description: In the Organisation's timezone } + to_date: { type: string, format: date } + from_time: { type: string, nullable: true, description: 'HH:MM, or null for an all-day range' } + to_time: { type: string, nullable: true } + timezone: { type: string, example: Europe/London } + reason_type: { type: string, enum: [annual_leave, sick_leave, training, other] } + reason_label: { type: string, example: Annual leave } + summary: { type: string, example: '3/12/2026 13:00–17:30 · Training' } + private_note: + type: string + nullable: true + description: Only returned to the colleague themselves and to Charity Editors + created_at: { type: string, format: date-time } + updated_at: { type: string, format: date-time } + UnavailabilityInput: + type: object + properties: + from_date: { type: string, format: date } + to_date: { type: string, format: date } + all_day: { type: boolean, default: true } + from_time: { type: string, description: 'HH:MM, for a part day' } + to_time: { type: string, description: 'HH:MM, for a part day' } + reason_type: { type: string, enum: [annual_leave, sick_leave, training, other] } + private_note: { type: string, maxLength: 150 } + unassign_event_ids: type: array - items: - $ref: '#/components/schemas/DeepLink' - PaginatedAnnouncementFacts: + items: { type: integer } + description: Events from `conflicting_events` to take the colleague off in the same call + UnavailabilityWithConflicts: + allOf: + - $ref: '#/components/schemas/Unavailability' + - type: object + properties: + conflicting_events: + type: array + description: Upcoming events the colleague is an Event Worker on during this range + items: + type: object + properties: + id: { type: integer } + name: { type: string } + start_datetime: { type: string, format: date-time } + end_datetime: { type: string, format: date-time } + event_category_name: { type: string, nullable: true, description: The Event Format } + project_id: { type: integer } + project_name: { type: string, nullable: true } + editable: { type: boolean, description: Whether the caller may edit the event, and so unassign the colleague } + unassigned: { type: boolean, description: Whether this call took the colleague off the event } + TrainingMaterial: type: object + description: A link to one of an Organisation's own training documents or videos, and who it is for properties: - page: - type: integer - page_size: - type: integer - page_count: + id: type: integer - total_count: + organisation_id: type: integer - data: + name: + type: string + url: + type: string + description: + type: string + nullable: true + material_type: + type: string + enum: [document, video] + all_organisation: + type: boolean + team_ids: type: array - items: - $ref: '#/components/schemas/AnnouncementFact' - Announcement: + items: { type: integer } + project_ids: + type: array + items: { type: integer } + description: The Workspaces (Projects) it is for + owner_id: + type: integer + nullable: true + owner_name: + type: string + nullable: true + description: Shown to viewers as "Questions? Ask [name]" + reviewed_at: + type: string + format: date-time + description: When it was added or last marked as reviewed + review_due: + type: boolean + nullable: true + description: Last reviewed more than 12 months ago. Null unless the caller can manage the Organisation's Training materials. + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + Tour: type: object + description: A Welcome Tour and its stops in order properties: id: type: integer - scope_type: + name: type: string - enum: [Charity, Project, Team, null] - nullable: true - description: | - Whose announcement it is: an Organisation (`Charity`), a Workspace (`Project`) or a Team. - Null for Makerble's own. Its audience is that place's colleagues: an Organisation's - colleagues, a Workspace's editors, reporters and observers, or a Team's members and leaders. - scope_id: + organisation_id: type: integer - nullable: true - training_material_id: + team_id: type: integer nullable: true + description: The Team it is for; null for the Organisation's default tour + audience: + type: string + description: The Team's name, or "Everyone in the organisation (default)" + watch_checklist_ids: + type: array + items: + type: integer description: >- - One of the place's Organisation's Training materials that the announcement links to (shown only to - colleagues it is shared with), or null - feature_tour_id: + The Checklists that Watch the journey shows straight after the tour, in order (up to 2). Empty means + people see up to 2 Checklists on their workspaces, most recently updated first. + training_material_id: type: integer nullable: true description: >- - The feature tour the popup's button starts with "Take the tour" while the tour is live, or null - feature_launch_id: + The Training material the tour's last stop links to as the Full guide (shown only to people it is shared + with), or null + mode: + type: string + enum: [required, optional] + description: required is shown as Mandatory + status: + type: string + enum: [draft, live] + start_skippable: + type: boolean + description: Whether people can skip the tour when it is first offered + later_limit: + type: integer + minimum: 1 + maximum: 10 + description: How many times someone can choose "I'll do this later" on a mandatory tour + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + stops: + type: array + items: + $ref: '#/components/schemas/TourStop' + TourStop: + type: object + properties: + id: + type: integer + position: type: integer + group_name: + type: string nullable: true - description: >- - The feature launch the announcement is for, or null. Its message, User Guide link, deep link and feature tour - are shown wherever the announcement's own are empty. + stop_key: + type: string + enum: [navbar_spaces, navbar_user, focus_table, contacts_table, contacts_search, contacts_filters, events_table, event_guests] + stop_label: + type: string + nullable: true + description: Which part of which page the stop focuses on + action: + type: string + enum: [next, click, ""] + description: Whether the stop waits for Next or asks the person to click something title: type: string body: type: string nullable: true - description: The announcement's own message; null when it shows its feature launch's short description - visual_type: + action_text: type: string - enum: [name_change, vimeo, image, intro_animation, storyboard, none] - name_changes: - type: array - items: - $ref: '#/components/schemas/AnnouncementNameChange' - vimeo_url: + nullable: true + description: What to click, on a click stop + after_text: type: string nullable: true - learn_more_url: + description: Shown after the click + skippable: + type: boolean + description: Whether a click stop shows Skip this stop + included: + type: boolean + description: Whether the tour shows this stop. An unticked stop keeps its wording for when it is ticked again. + default_body: type: string nullable: true - button_label: + description: Makerble's wording for this stop, shown when `body` is empty + TourInput: + type: object + properties: + name: type: string - audience: + organisation_id: + type: integer + team_id: + type: integer + nullable: true + mode: type: string - enum: [everyone, colleagues, administrators] - roles: + enum: [required, optional] + status: + type: string + enum: [draft, live] + start_skippable: + type: boolean + later_limit: + type: integer + minimum: 1 + maximum: 10 + watch_checklist_ids: type: array + maxItems: 2 items: - type: string - description: The roles that narrow who sees it, in place of `audience`; empty for none. See Create an Announcement. - audience_rules: - type: object - additionalProperties: true - description: Behaviour rules over named facts; `{}` for none. See Create an Announcement. - page_keys: + type: integer + description: Up to 2 Checklists of the tour's Organisation for Watch the journey, in order. Send [] to clear them. + training_material_id: + type: integer + nullable: true + description: >- + One of the Organisation's Training materials, linked as the Full guide on the tour's last stop. Send null to + clear it. + stops: type: array items: - type: string - description: The guidance panel keys of the pages it shows on; empty for any page. See Create an Announcement. - image_url: + type: object + properties: + id: + type: integer + position: + type: integer + group_name: + type: string + stop_key: + type: string + description: For an Organisation Admin, names the stop instead of `id`, and adds it if the tour doesn't have it + title: + type: string + body: + type: string + nullable: true + description: The stop's wording; empty means Makerble's default. Up to 280 characters for an Organisation Admin. + included: + type: boolean + description: Whether the tour shows this stop + action_text: + type: string + after_text: + type: string + skippable: + type: boolean + _destroy: + type: boolean + PaginatedTours: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/Tour' + FeatureTourFunnel: + type: object + description: A feature tour's funnel + properties: + id: + type: integer + name: type: string - nullable: true - description: For the `image` visual, a link to the uploaded image; null otherwise. - image_alt: + status: type: string - nullable: true - description: For the `image` visual, the image's alt text; null otherwise. - intro_key: + enum: [draft, amends_needed, live] + counts_since: type: string + format: date nullable: true - description: For `intro_animation`, the key of the Intro whose animation it plays; null otherwise. - storyboard: + description: The day stop-by-stop counts were first recorded; null until anyone has taken a step + totals: type: object - nullable: true - additionalProperties: true - description: For `storyboard`, the announcement's own animation storyboard; null otherwise. - starts_on: + properties: + started: + type: integer + description: Everyone who has taken the tour + completed: + type: integer + in_progress: + type: integer + ended_early: + type: integer + stops: + type: array + items: + type: object + properties: + id: + type: integer + position: + type: integer + stop_key: + type: string + title: + type: string + description: The stop's own title, or Makerble's default + reached: + type: integer + completed: + type: integer + skipped_by_user: + type: integer + skipped_by_system: + type: integer + FeatureLaunchEmailInput: + type: object + required: [feature_launch_ids] + properties: + feature_launch_ids: + type: array + description: The feature launches to show, 1 to 10, in this order (from GET /feature_launches). + items: + type: integer + user_email: type: string - format: date - nullable: true - ends_on: + description: Show it as this Makerble user gets it. Leave it out for someone without a Makerble account. + intro: type: string - format: date - nullable: true - status: + description: An opening paragraph, shown before the feature launches. + subject: type: string - enum: [draft, scheduled] - description: What is stored. See `current_status` for whether it is showing. - current_status: + description: The subject. Leave it out to name the features ("What’s new in Makerble - Registers and Albums"). + FeatureLaunchEmailPreview: + type: object + required: [subject, to, html, text] + properties: + subject: type: string - enum: [draft, scheduled, live, ended] - description: "`live` while today is within the dates of a scheduled announcement, `ended` after them." - seen_count: - type: integer - description: People who have closed it. - seen_counts_by_source: - type: object - description: >- - Of those who have seen it, how many first saw it in the popup and how many by opening it in - Wishlist › What's new. - properties: - popup: - type: integer - whats_new: - type: integer - required: [popup, whats_new] - learn_more_click_count: - type: integer - description: People who clicked its "Learn more" link. - button_deep_link: + to: type: string - nullable: true - description: The deep link the button opens, or null when it only closes the popup. - button_click_count: - type: integer - description: People who clicked the button through to its page. - created_by_id: - type: integer - nullable: true - updated_by_id: - type: integer - nullable: true - created_at: + description: Who it would go to. + html: type: string - format: date-time - updated_at: + description: The HTML version, a 600px email with inline styles. + text: type: string - format: date-time - TrainingMaterialInput: + description: The plain-text version. + FeatureLaunch: type: object + description: A feature launch and its launch content properties: + id: + type: integer name: type: string - maxLength: 120 - description: For example "How to add a new school". Required. - url: + maxLength: 80 + description: The feature's name as people see it in Makerble, such as Registers. Unique, ignoring case. + tier: type: string - maxLength: 2048 - description: The document's link, starting https://. Required. - description: + enum: [minor, standard, major] + description: How big the launch is. Major is a new feature or a substantial new capability. + short_description: type: string + nullable: true maxLength: 280 + description: The announcement message. An announcement for the launch shows it when its own `body` is empty. + email_description: + type: string nullable: true - description: One or two lines saying who it is for - material_type: + maxLength: 600 + description: >- + 2 to 4 sentences for the feature launch emails, in the words people see in Makerble: what it is, why it + matters and how to start. + user_guide_url: type: string - enum: [document, video] - description: Shown as an icon. Defaults to document. - all_organisation: - type: boolean - description: For everyone in the Organisation - team_ids: - type: array - items: { type: integer } - description: The Organisation's Teams it is for - project_ids: - type: array - items: { type: integer } - description: The Organisation's Workspaces (Projects) it is for - owner_id: - type: integer - description: The person to ask about it. An Organisation Admin of the Organisation, or the caller. - Unavailability: - type: object - description: A range when a colleague can't work for an Organisation (Staff availability page) - properties: - id: { type: integer } - user_id: { type: integer } - charity_id: { type: integer } - starts_at: { type: string, format: date-time } - ends_at: + nullable: true + maxLength: 2048 + description: A page in the Makerble User Guide (https://makerble.atlassian.net/wiki/spaces/MCPD/...). + blog_url: type: string - format: date-time - description: For an all-day range, the end of `to_date` in the Organisation's timezone - all_day: { type: boolean } - from_date: { type: string, format: date, description: In the Organisation's timezone } - to_date: { type: string, format: date } - from_time: { type: string, nullable: true, description: 'HH:MM, or null for an all-day range' } - to_time: { type: string, nullable: true } - timezone: { type: string, example: Europe/London } - reason_type: { type: string, enum: [annual_leave, sick_leave, training, other] } - reason_label: { type: string, example: Annual leave } - summary: { type: string, example: '3/12/2026 13:00–17:30 · Training' } - private_note: + nullable: true + maxLength: 2048 + description: The blog post about the feature, a web address starting https://. + deep_link: type: string nullable: true - description: Only returned to the colleague themselves and to Charity Editors - created_at: { type: string, format: date-time } - updated_at: { type: string, format: date-time } - UnavailabilityInput: - type: object - properties: - from_date: { type: string, format: date } - to_date: { type: string, format: date } - all_day: { type: boolean, default: true } - from_time: { type: string, description: 'HH:MM, for a part day' } - to_time: { type: string, description: 'HH:MM, for a part day' } - reason_type: { type: string, enum: [annual_leave, sick_leave, training, other] } - private_note: { type: string, maxLength: 150 } - unassign_event_ids: - type: array - items: { type: integer } - description: Events from `conflicting_events` to take the colleague off in the same call - UnavailabilityWithConflicts: - allOf: - - $ref: '#/components/schemas/Unavailability' - - type: object - properties: - conflicting_events: - type: array - description: Upcoming events the colleague is an Event Worker on during this range - items: - type: object - properties: - id: { type: integer } - name: { type: string } - start_datetime: { type: string, format: date-time } - end_datetime: { type: string, format: date-time } - event_category_name: { type: string, nullable: true, description: The Event Format } - project_id: { type: integer } - project_name: { type: string, nullable: true } - editable: { type: boolean, description: Whether the caller may edit the event, and so unassign the colleague } - unassigned: { type: boolean, description: Whether this call took the colleague off the event } - TrainingMaterial: - type: object - description: A link to one of an Organisation's own training documents or videos, and who it is for - properties: - id: - type: integer - organisation_id: + description: The name of a deep link (from GET /deep_links) that opens the feature in the person's own organisation. + feature_tour_id: type: integer - name: + nullable: true + description: The feature tour (from GET /feature_tours) that introduces it. + intro_key: type: string - url: + nullable: true + description: The key of the feature's Intro (from GET /guidance_panels). + email_visual: type: string - description: + enum: [gif, still_frame, image, none] + description: >- + What the email shows: a GIF or a still frame made from the feature's animation, an uploaded image + (`email_image`), or nothing. + email_visual_alt: type: string nullable: true - material_type: + maxLength: 250 + description: What the visual shows, for screen readers. Required unless `email_visual` is `none`. + email_primary_link: type: string - enum: [document, video] - all_organisation: - type: boolean - team_ids: + nullable: true + enum: [deep_link, tour, user_guide, blog, null] + description: >- + Which link the email's main button uses: the deep link, Take the tour, the User Guide page or the blog + post. The launch must have that link. + email_text_links: type: array - items: { type: integer } - project_ids: + maxItems: 2 + items: + type: string + enum: [deep_link, tour, user_guide, blog] + description: Up to two more links the email shows as text, each one the launch has and not the main button. + jira_keys: type: array - items: { type: integer } - description: The Workspaces (Projects) it is for - owner_id: - type: integer + items: + type: string + example: CP-9271 + description: The Jira issues that built the feature. + released_on: + type: string + format: date nullable: true - owner_name: + description: The day the feature reached production. + email_image_url: type: string nullable: true - description: Shown to viewers as "Questions? Ask [name]" - reviewed_at: + description: The uploaded image for an `image` visual, or null + email_gif_url: type: string - format: date-time - description: When it was added or last marked as reviewed - review_due: - type: boolean nullable: true - description: Last reviewed more than 12 months ago. Null unless the caller can manage the Organisation's Training materials. + description: The GIF made from the feature's animation, or null until it is made + email_still_frame_url: + type: string + nullable: true + description: The still frame made from the feature's animation, or null until it is made + announcement_ids: + type: array + items: + type: integer + description: The announcements for this launch + created_by_id: + type: integer + nullable: true + updated_by_id: + type: integer + nullable: true created_at: type: string format: date-time updated_at: type: string format: date-time - Tour: + FeatureLaunchInput: type: object - description: A Welcome Tour and its stops in order properties: - id: - type: integer name: type: string - organisation_id: - type: integer - team_id: + maxLength: 80 + description: >- + The feature's name as people see it in Makerble, such as Registers. Unique, ignoring case. Required on + create. + tier: + type: string + enum: [minor, standard, major] + description: How big the launch is. Major is a new feature or a substantial new capability. + short_description: + type: string + nullable: true + maxLength: 280 + description: The announcement message. An announcement for the launch shows it when its own `body` is empty. + email_description: + type: string + nullable: true + maxLength: 600 + description: >- + 2 to 4 sentences for the feature launch emails, in the words people see in Makerble: what it is, why it + matters and how to start. + user_guide_url: + type: string + nullable: true + maxLength: 2048 + description: A page in the Makerble User Guide (https://makerble.atlassian.net/wiki/spaces/MCPD/...). + blog_url: + type: string + nullable: true + maxLength: 2048 + description: The blog post about the feature, a web address starting https://. + deep_link: + type: string + nullable: true + description: The name of a deep link (from GET /deep_links) that opens the feature in the person's own organisation. + feature_tour_id: type: integer nullable: true - description: The Team it is for; null for the Organisation's default tour - audience: + description: The feature tour (from GET /feature_tours) that introduces it. + intro_key: type: string - description: The Team's name, or "Everyone in the organisation (default)" - watch_checklist_ids: + nullable: true + description: The key of the feature's Intro (from GET /guidance_panels). + email_visual: + type: string + enum: [gif, still_frame, image, none] + description: >- + What the email shows: a GIF or a still frame made from the feature's animation, an uploaded image + (`email_image`), or nothing. + email_visual_alt: + type: string + nullable: true + maxLength: 250 + description: What the visual shows, for screen readers. Required unless `email_visual` is `none`. + email_primary_link: + type: string + nullable: true + enum: [deep_link, tour, user_guide, blog, null] + description: >- + Which link the email's main button uses: the deep link, Take the tour, the User Guide page or the blog + post. The launch must have that link. + email_text_links: type: array + maxItems: 2 items: - type: integer - description: >- - The Checklists that Watch the journey shows straight after the tour, in order (up to 2). Empty means - people see up to 2 Checklists on their workspaces, most recently updated first. - training_material_id: - type: integer + type: string + enum: [deep_link, tour, user_guide, blog] + description: Up to two more links the email shows as text, each one the launch has and not the main button. + jira_keys: + type: array + items: + type: string + example: CP-9271 + description: The Jira issues that built the feature. + released_on: + type: string + format: date nullable: true + description: The day the feature reached production. + email_image: description: >- - The Training material the tour's last stop links to as the Full guide (shown only to people it is shared - with), or null - mode: + For an `image` visual: a PNG, JPG, GIF or WebP file of up to 5 MB, as a multipart file or as base64 data + with a filename. + oneOf: + - type: string + format: binary + - $ref: '#/components/schemas/AnnouncementImageUpload' + PaginatedFeatureLaunches: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/FeatureLaunch' + FeatureTour: + type: object + description: A feature tour and its stops in order + properties: + id: + type: integer + key: + type: string + description: A unique name in lowercase words joined by underscores, used by announcements and agents + name: type: string - enum: [required, optional] - description: required is shown as Mandatory status: type: string - enum: [draft, live] - start_skippable: + enum: [draft, amends_needed, live] + description: Only a live tour is shown to anyone. `amends_needed` is a draft that came back from review + page_key: + type: string + nullable: true + description: The page whose Intro offers the tour with "Take the tour" while it is live; null for none + auto_prompt: type: boolean - description: Whether people can skip the tour when it is first offered - later_limit: - type: integer - minimum: 1 - maximum: 10 - description: How many times someone can choose "I'll do this later" on a mandatory tour + description: Whether the tour is offered once, the first time someone opens its page created_at: type: string format: date-time @@ -19772,85 +22295,62 @@ components: stops: type: array items: - $ref: '#/components/schemas/TourStop' - TourStop: + $ref: '#/components/schemas/FeatureTourStop' + FeatureTourStop: type: object properties: id: type: integer position: type: integer - group_name: - type: string - nullable: true stop_key: type: string - enum: [navbar_spaces, navbar_user, focus_table, contacts_table, contacts_search, contacts_filters, events_table, event_guests] + description: One of the stops Makerble knows, the same stops Welcome Tours use stop_label: type: string nullable: true description: Which part of which page the stop focuses on + group_name: + type: string + nullable: true + description: The feature the stop belongs to, such as Contacts or Registers; "Other" when it has none, null for a stop Makerble no longer knows action: type: string enum: [next, click, ""] description: Whether the stop waits for Next or asks the person to click something title: type: string - body: - type: string nullable: true - action_text: + description: The stop's own title; null shows `default_title` + body: type: string nullable: true - description: What to click, on a click stop - after_text: + description: The stop's own wording; null shows `default_body` + default_title: type: string nullable: true - description: Shown after the click - skippable: - type: boolean - description: Whether a click stop shows Skip this stop - included: - type: boolean - description: Whether the tour shows this stop. An unticked stop keeps its wording for when it is ticked again. + description: Makerble's title for this stop default_body: type: string nullable: true - description: Makerble's wording for this stop, shown when `body` is empty - TourInput: + description: Makerble's wording for this stop + FeatureTourInput: type: object properties: - name: + key: type: string - organisation_id: - type: integer - team_id: - type: integer - nullable: true - mode: + name: type: string - enum: [required, optional] status: type: string - enum: [draft, live] - start_skippable: - type: boolean - later_limit: - type: integer - minimum: 1 - maximum: 10 - watch_checklist_ids: - type: array - maxItems: 2 - items: - type: integer - description: Up to 2 Checklists of the tour's Organisation for Watch the journey, in order. Send [] to clear them. - training_material_id: - type: integer + enum: [draft, amends_needed, live] + description: Only a live tour is shown to anyone. `amends_needed` is a draft that came back from review + page_key: + type: string nullable: true - description: >- - One of the Organisation's Training materials, linked as the Full guide on the tour's last stop. Send null to - clear it. + description: The key of a page's Intro, such as contacts. Send null or "" for none. + auto_prompt: + type: boolean stops: type: array items: @@ -19858,327 +22358,311 @@ components: properties: id: type: integer + description: Changes this stop; leave it out to add a stop position: type: integer - group_name: - type: string stop_key: type: string - description: For an Organisation Admin, names the stop instead of `id`, and adds it if the tour doesn't have it title: type: string + nullable: true + description: Up to 120 characters; empty means Makerble's default body: type: string nullable: true - description: The stop's wording; empty means Makerble's default. Up to 280 characters for an Organisation Admin. - included: - type: boolean - description: Whether the tour shows this stop - action_text: - type: string - after_text: - type: string - skippable: - type: boolean + description: Up to 600 characters; empty means Makerble's default _destroy: type: boolean - PaginatedTours: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/Tour' - FeatureTourFunnel: + TourStopDefinition: type: object - description: A feature tour's funnel + description: One of the stops Makerble knows, for building a Welcome Tour or a feature tour properties: - id: - type: integer - name: + key: + type: string + description: The stop's key, sent as `stop_key` when adding it to a tour + label: + type: string + description: Which part of which page the stop focuses on + group_name: + type: string + description: The feature the stop belongs to, such as Contacts or Registers; "Other" when it has none + page: + type: string + description: The page the stop opens, as a page name and its key, a path, or in words when it is worked out for each person + action: + type: string + enum: [next, click] + description: Whether the stop waits for Next or asks the person to click something + action_label: type: string - status: + description: '`action` in words: "Next button" or "Waits for a click"' + default_title: type: string - enum: [draft, amends_needed, live] - counts_since: + nullable: true + description: Makerble's title for the stop + default_body: type: string - format: date nullable: true - description: The day stop-by-stop counts were first recorded; null until anyone has taken a step - totals: + description: Makerble's wording for the stop + empty: type: object + nullable: true + description: What the stop shows someone who can open its page but has nothing on it yet; null when it is skipped instead properties: - started: - type: integer - description: Everyone who has taken the tour - completed: - type: integer - in_progress: - type: integer - ended_early: - type: integer - stops: - type: array - items: - type: object - properties: - id: - type: integer - position: - type: integer - stop_key: - type: string - title: - type: string - description: The stop's own title, or Makerble's default - reached: - type: integer - completed: - type: integer - skipped_by_user: - type: integer - skipped_by_system: - type: integer - FeatureLaunchEmailInput: + title: + type: string + body: + type: string + page: + type: string + nullable: true + description: The page the empty variant opens, when it isn't the stop's own page + shown_to: + type: string + description: Who sees the stop, e.g. "Only for Organisation Editors" or "Skipped for someone without a Checklist" + feature_tour_count: + type: integer + description: How many feature tours use the stop + welcome_tour_count: + type: integer + description: How many Welcome Tours use the stop + TourStopWordingInput: type: object - required: [feature_launch_ids] properties: - feature_launch_ids: - type: array - description: The feature launches to show, 1 to 10, in this order (from GET /feature_launches). - items: - type: integer - user_email: - type: string - description: Show it as this Makerble user gets it. Leave it out for someone without a Makerble account. - intro: + default_title: type: string - description: An opening paragraph, shown before the feature launches. - subject: + maxLength: 120 + description: Makerble's title for the stop; empty goes back to the original + default_body: type: string - description: The subject. Leave it out to name the features ("What’s new in Makerble - Registers and Albums"). - FeatureLaunchEmailPreview: + maxLength: 600 + description: Makerble's text for the stop; empty goes back to the original + PaginatedTourStopDefinitions: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/TourStopDefinition' + PaginatedFeatureTours: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/FeatureTour' + PaginatedTourProgress: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + summary: + $ref: '#/components/schemas/TourProgressSummary' + data: + type: array + items: + $ref: '#/components/schemas/TourProgress' + TourProgressSummary: type: object - required: [subject, to, html, text] + description: The tiles on the Who has finished page properties: - subject: - type: string - to: - type: string - description: Who it would go to. - html: - type: string - description: The HTML version, a 600px email with inline styles. - text: - type: string - description: The plain-text version. - FeatureLaunch: + finished: + type: integer + part_way: + type: integer + not_started: + type: integer + description: Not started, or skipped an optional tour + average_minutes: + type: number + nullable: true + description: Average minutes to finish, counting only tours finished without "I'll do this later" + TourProgress: type: object - description: A feature launch and its launch content + description: One colleague and how far they have got properties: - id: + user_id: type: integer name: type: string - maxLength: 80 - description: The feature's name as people see it in Makerble, such as Registers. Unique, ignoring case. - tier: - type: string - enum: [minor, standard, major] - description: How big the launch is. Major is a new feature or a substantial new capability. - short_description: + team: type: string nullable: true - maxLength: 280 - description: The announcement message. An announcement for the launch shows it when its own `body` is empty. - email_description: + description: The first of the Organisation's Teams they joined + status: type: string - nullable: true - maxLength: 600 - description: >- - 2 to 4 sentences for the feature launch emails, in the words people see in Makerble: what it is, why it - matters and how to start. - user_guide_url: + enum: [not_started, in_progress, deferred, completed, skipped] + description: deferred means they chose "I'll do this later" + tour: type: string - nullable: true - maxLength: 2048 - description: A page in the Makerble User Guide (https://makerble.atlassian.net/wiki/spaces/MCPD/...). - blog_url: + description: As the page shows it, for example "Paused at stop 3 of 7" or "Finished" + later_used: type: string nullable: true - maxLength: 2048 - description: The blog post about the feature, a web address starting https://. - deep_link: + description: How many times they chose "I'll do this later" of how many allowed, on a mandatory tour + last_active_at: type: string + format: date-time nullable: true - description: The name of a deep link (from GET /deep_links) that opens the feature in the person's own organisation. - feature_tour_id: - type: integer - nullable: true - description: The feature tour (from GET /feature_tours) that introduces it. - intro_key: + reminded_at: type: string + format: date-time nullable: true - description: The key of the feature's Intro (from GET /guidance_panels). - email_visual: - type: string - enum: [gif, still_frame, image, none] - description: >- - What the email shows: a GIF or a still frame made from the feature's animation, an uploaded image - (`email_image`), or nothing. - email_visual_alt: + description: When they were last sent a reminder + TourReminder: + type: object + properties: + user_id: + type: integer + reminded_at: type: string - nullable: true - maxLength: 250 - description: What the visual shows, for screen readers. Required unless `email_visual` is `none`. - email_primary_link: + format: date-time + next_reminder_from: type: string - nullable: true - enum: [deep_link, tour, user_guide, blog, null] - description: >- - Which link the email's main button uses: the deep link, Take the tour, the User Guide page or the blog - post. The launch must have that link. - email_text_links: - type: array - maxItems: 2 - items: - type: string - enum: [deep_link, tour, user_guide, blog] - description: Up to two more links the email shows as text, each one the launch has and not the main button. - jira_keys: + format: date-time + description: The earliest another reminder can be sent to them + WelcomeJourneySettings: + type: object + properties: + organisation_id: + type: integer + photo_skippable: + type: boolean + description: Whether people can skip adding a profile picture + watch_skippable: + type: boolean + description: Whether people can skip Watch the journey, the Checklists shown after the Welcome Tour + tour_ids: type: array items: - type: string - example: CP-9271 - description: The Jira issues that built the feature. - released_on: + type: integer + PaginatedAnnouncements: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/Announcement' + WhatsNewItem: + type: object + description: An announcement in the signed-in user's Wishlist › What's new, with whether they have seen it + properties: + id: + type: integer + title: + type: string + description: The headline. + body: + type: string + starts_on: type: string format: date - nullable: true - description: The day the feature reached production. - email_image_url: + ends_on: + type: string + format: date + section: + type: string + enum: [new_since_joined, before_joined] + visual_type: + type: string + enum: [name_change, vimeo, image, intro_animation, storyboard, none] + image_url: type: string nullable: true - description: The uploaded image for an `image` visual, or null - email_gif_url: + image_alt: type: string nullable: true - description: The GIF made from the feature's animation, or null until it is made - email_still_frame_url: + vimeo_url: type: string nullable: true - description: The still frame made from the feature's animation, or null until it is made - announcement_ids: - type: array - items: - type: integer - description: The announcements for this launch - created_by_id: - type: integer + learn_more_url: + type: string nullable: true - updated_by_id: + description: A page in the Makerble User Guide. + button_label: + type: string + includes_tour: + type: boolean + description: Whether its button starts a feature tour, which it does while the tour is live. + feature_tour_id: type: integer nullable: true - created_at: + description: The live feature tour its button starts, or null. + asked_for: + type: boolean + description: Whether it answered one of the user's requests in Wishlist › Your wishlist. + seen: + type: boolean + description: Whether the user has seen it, in the popup or by opening it in What's new. + seen_at: type: string format: date-time + nullable: true updated_at: type: string format: date-time - FeatureLaunchInput: + required: [id, title, body, starts_on, section, visual_type, includes_tour, asked_for, seen, seen_at] + PaginatedWhatsNew: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/WhatsNewItem' + Wish: type: object + description: A feature request or feedback from Wishlist › Your wishlist properties: - name: - type: string - maxLength: 80 - description: >- - The feature's name as people see it in Makerble, such as Registers. Unique, ignoring case. Required on - create. - tier: - type: string - enum: [minor, standard, major] - description: How big the launch is. Major is a new feature or a substantial new capability. - short_description: - type: string - nullable: true - maxLength: 280 - description: The announcement message. An announcement for the launch shows it when its own `body` is empty. - email_description: + id: + type: integer + kind: type: string - nullable: true - maxLength: 600 - description: >- - 2 to 4 sentences for the feature launch emails, in the words people see in Makerble: what it is, why it - matters and how to start. - user_guide_url: + enum: [feature_request, feedback] + body: type: string - nullable: true - maxLength: 2048 - description: A page in the Makerble User Guide (https://makerble.atlassian.net/wiki/spaces/MCPD/...). - blog_url: + status: type: string - nullable: true - maxLength: 2048 - description: The blog post about the feature, a web address starting https://. - deep_link: + description: Where it is, as the person sees it, e.g. "Received", "Read by the Makerble team" or "Shipped". + helpdesk_key: type: string nullable: true - description: The name of a deep link (from GET /deep_links) that opens the feature in the person's own organisation. - feature_tour_id: + description: The Helpdesk ticket a feature request became (e.g. MC-2501), once it exists. + charity_id: type: integer nullable: true - description: The feature tour (from GET /feature_tours) that introduces it. - intro_key: - type: string + description: The organisation it's about. + announcement_id: + type: integer nullable: true - description: The key of the feature's Intro (from GET /guidance_panels). - email_visual: + description: The Announcement that answered it, if one has. + created_at: type: string - enum: [gif, still_frame, image, none] - description: >- - What the email shows: a GIF or a still frame made from the feature's animation, an uploaded image - (`email_image`), or nothing. - email_visual_alt: + format: date-time + updated_at: type: string - nullable: true - maxLength: 250 - description: What the visual shows, for screen readers. Required unless `email_visual` is `none`. - email_primary_link: + format: date-time + WishInput: + type: object + required: [kind, body] + properties: + kind: type: string - nullable: true - enum: [deep_link, tour, user_guide, blog, null] - description: >- - Which link the email's main button uses: the deep link, Take the tour, the User Guide page or the blog - post. The launch must have that link. - email_text_links: - type: array - maxItems: 2 - items: - type: string - enum: [deep_link, tour, user_guide, blog] - description: Up to two more links the email shows as text, each one the launch has and not the main button. - jira_keys: - type: array - items: - type: string - example: CP-9271 - description: The Jira issues that built the feature. - released_on: + enum: [feature_request, feedback] + body: type: string - format: date - nullable: true - description: The day the feature reached production. - email_image: - description: >- - For an `image` visual: a PNG, JPG, GIF or WebP file of up to 5 MB, as a multipart file or as base64 data - with a filename. - oneOf: - - type: string - format: binary - - $ref: '#/components/schemas/AnnouncementImageUpload' - PaginatedFeatureLaunches: + maxLength: 2000 + charity_id: + type: integer + description: One of your organisations. Needed only if you belong to more than one. + PaginatedWishes: allOf: - $ref: '#/components/schemas/PaginationEnvelope' - type: object @@ -20186,632 +22670,604 @@ components: data: type: array items: - $ref: '#/components/schemas/FeatureLaunch' - FeatureTour: + $ref: '#/components/schemas/Wish' + RoadmapItem: type: object - description: A feature tour and its stops in order + description: Something in Wishlist › Coming soon properties: id: type: integer - key: + title: type: string - description: A unique name in lowercase words joined by underscores, used by announcements and agents - name: + body: type: string - status: + stage: type: string - enum: [draft, amends_needed, live] - description: Only a live tour is shown to anyone. `amends_needed` is a draft that came back from review - page_key: + enum: [building_now, up_next] + stage_label: type: string - nullable: true - description: The page whose Intro offers the tour with "Take the tour" while it is live; null for none - auto_prompt: + enum: [Building now, Up next] + position: + type: integer + description: Its order within its stage. + published: type: boolean - description: Whether the tour is offered once, the first time someone opens its page + stale: + type: boolean + description: Unchanged for 60 days. created_at: type: string format: date-time updated_at: type: string format: date-time - stops: - type: array - items: - $ref: '#/components/schemas/FeatureTourStop' - FeatureTourStop: + RoadmapItemInput: type: object properties: - id: - type: integer - position: - type: integer - stop_key: - type: string - description: One of the stops Makerble knows, the same stops Welcome Tours use - stop_label: - type: string - nullable: true - description: Which part of which page the stop focuses on - group_name: - type: string - nullable: true - description: The feature the stop belongs to, such as Contacts or Registers; "Other" when it has none, null for a stop Makerble no longer knows - action: - type: string - enum: [next, click, ""] - description: Whether the stop waits for Next or asks the person to click something title: type: string - nullable: true - description: The stop's own title; null shows `default_title` + maxLength: 90 body: type: string - nullable: true - description: The stop's own wording; null shows `default_body` - default_title: - type: string - nullable: true - description: Makerble's title for this stop - default_body: + maxLength: 280 + stage: type: string - nullable: true - description: Makerble's wording for this stop - FeatureTourInput: + enum: [building_now, up_next] + published: + type: boolean + PaginatedRoadmapItems: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/RoadmapItem' + BulkProjectMove: type: object + description: A move of many Contacts through Projects, and how far it has got properties: - key: - type: string - name: - type: string + id: + type: integer status: type: string - enum: [draft, amends_needed, live] - description: Only a live tour is shown to anyone. `amends_needed` is a draft that came back from review - page_key: + enum: [pending, running, completed, failed, undone] + total_count: + type: integer + description: Contacts the move will try to change (the selection, less Headline Only Contacts) + processed_count: + type: integer + description: Contacts reached so far + changed_count: + type: integer + description: Contacts whose Projects or status changed + skip_counts: + type: object + additionalProperties: { type: integer } + description: Skipped Contacts by reason, e.g. headline_only, not_allowed or error + background: + type: boolean + description: True when the move runs in the background (more than 50 Contacts) + summary: type: string nullable: true - description: The key of a page's Intro, such as contacts. Send null or "" for none. - auto_prompt: - type: boolean - stops: + description: The finished message, e.g. "12 contacts changed. 3 skipped …"; null until it has finished + StartPage: + type: object + required: [start_page, options] + properties: + start_page: + type: string + enum: [newsfeed, focus, snapshot, autopilot] + description: The key of your start page; newsfeed when you have never chosen + options: type: array + description: The pages you can choose, in the order the Today section lists them items: type: object + required: [key, label, description] properties: - id: - type: integer - description: Changes this stop; leave it out to add a stop - position: - type: integer - stop_key: + key: type: string - title: + description: e.g. focus + label: type: string - nullable: true - description: Up to 120 characters; empty means Makerble's default - body: + description: Its name under Today, e.g. Focus + description: type: string - nullable: true - description: Up to 600 characters; empty means Makerble's default - _destroy: - type: boolean - TourStopDefinition: + description: The line under it in Personal Settings › Preferences + FocusSource: type: object - description: One of the stops Makerble knows, for building a Welcome Tour or a feature tour + required: [key, label, shown] properties: key: type: string - description: The stop's key, sent as `stop_key` when adding it to a tour + description: e.g. checklist_actions label: type: string - description: Which part of which page the stop focuses on - group_name: + description: Its name under ⚙ What Focus shows you, e.g. Checklist Actions + shown: + type: boolean + description: False when you have switched it off + FocusItem: + type: object + required: [id, type, title, context, contact, url, due_on, raised_on, due_text, section, action] + properties: + id: type: string - description: The feature the stop belongs to, such as Contacts or Registers; "Other" when it has none - page: + description: Unique across every source, e.g. checklist_actions-812 + type: type: string - description: The page the stop opens, as a page name and its key, a path, or in words when it is worked out for each person - action: + description: The source it came from, e.g. checklist_actions + title: type: string - enum: [next, click] - description: Whether the stop waits for Next or asks the person to click something - action_label: + description: What it is, e.g. the Checklist step + context: type: string - description: '`action` in words: "Next button" or "Waits for a click"' - default_title: + description: Where it belongs, e.g. "Checklist Action · Intake · step 2 of 5", plus who is responsible when it isn't you + contact: + type: object + nullable: true + description: The Contact it is about, when there is one + required: [id, name] + properties: + id: + type: integer + name: + type: string + url: + type: string + description: Where the row leads + due_on: type: string + format: date nullable: true - description: Makerble's title for the stop - default_body: + description: The day it is due, or null + raised_on: type: string + format: date nullable: true - description: Makerble's wording for the stop - empty: + description: For something with no due date, the day it was raised + due_text: + type: string + description: e.g. "15 days overdue", "Due today", "Due in 4 days", "No due date" + section: + type: string + enum: [overdue, today, this_week, later] + action: type: object - nullable: true - description: What the stop shows someone who can open its page but has nothing on it yet; null when it is skipped instead + description: The row's one button + required: [label, url, method] properties: - title: + label: type: string - body: + description: e.g. Open + url: type: string - page: + method: type: string - nullable: true - description: The page the empty variant opens, when it isn't the stop's own page - shown_to: - type: string - description: Who sees the stop, e.g. "Only for Organisation Editors" or "Skipped for someone without a Checklist" - feature_tour_count: - type: integer - description: How many feature tours use the stop - welcome_tour_count: - type: integer - description: How many Welcome Tours use the stop - TourStopWordingInput: + description: The HTTP method, e.g. get + FocusFeed: type: object + required: [scope, teams, type, sources, counts, sections, page, page_size, page_count, total_count, data] properties: - default_title: + scope: type: string - maxLength: 120 - description: Makerble's title for the stop; empty goes back to the original - default_body: + enum: [me, teams] + teams: + type: boolean + description: You are in a Team, so scope=teams is available + type: type: string - maxLength: 600 - description: Makerble's text for the stop; empty goes back to the original - PaginatedTourStopDefinitions: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/TourStopDefinition' - PaginatedFeatureTours: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/FeatureTour' - PaginatedTourProgress: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object + nullable: true + description: The type filtered by, or null for every type + sources: + type: array + items: + $ref: '#/components/schemas/FocusSource' + counts: + type: object + description: "`all`, and the number of items of each type that has any, e.g. {all: 4, checklist_actions: 4}" + required: [all] + additionalProperties: + type: integer properties: - summary: - $ref: '#/components/schemas/TourProgressSummary' - data: - type: array - items: - $ref: '#/components/schemas/TourProgress' - TourProgressSummary: - type: object - description: The tiles on the Who has finished page - properties: - finished: + all: + type: integer + sections: + type: array + description: The sections that have items, in order + items: + type: object + required: [key, label, count] + properties: + key: + type: string + enum: [overdue, today, this_week, later] + label: + type: string + count: + type: integer + page: type: integer - part_way: + page_size: type: integer - not_started: + page_count: type: integer - description: Not started, or skipped an optional tour - average_minutes: - type: number - nullable: true - description: Average minutes to finish, counting only tours finished without "I'll do this later" - TourProgress: - type: object - description: One colleague and how far they have got - properties: - user_id: + total_count: type: integer - name: - type: string - team: - type: string - nullable: true - description: The first of the Organisation's Teams they joined - status: + data: + type: array + items: + $ref: '#/components/schemas/FocusItem' + + ImpactStoreSearchResult: + type: object + description: A published ImpactStore item found by **Search the ImpactStore**. + properties: + id: + type: integer + type: type: string - enum: [not_started, in_progress, deferred, completed, skipped] - description: deferred means they chose "I'll do this later" - tour: + enum: [survey, contact_form, case_form, impact_framework, report_template, toolkit, project_type] + type_label: type: string - description: As the page shows it, for example "Paused at stop 3 of 7" or "Finished" - later_used: + description: The front-end name of the type, e.g. Contact Form + name: type: string - nullable: true - description: How many times they chose "I'll do this later" of how many allowed, on a mandatory tour - last_active_at: + description: type: string - format: date-time nullable: true - reminded_at: + description: One line of plain text (always null for a Case Form) + causes: + type: array + items: + type: string + description: Cause and subcause names, causes first + used_by_count: + type: integer + description: How many organisations use it + explore_url: type: string - format: date-time nullable: true - description: When they were last sent a reminder - TourReminder: - type: object - properties: - user_id: + description: Its page on Explore (null for a Project Type) + matched_words: type: integer - reminded_at: - type: string - format: date-time - next_reminder_from: - type: string - format: date-time - description: The earliest another reminder can be sent to them - WelcomeJourneySettings: + description: How many of the query's words it matched + + PaginatedImpactStoreSearch: type: object properties: - organisation_id: + page: type: integer - photo_skippable: - type: boolean - description: Whether people can skip adding a profile picture - watch_skippable: - type: boolean - description: Whether people can skip Watch the journey, the Checklists shown after the Welcome Tour - tour_ids: + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: type: array items: - type: integer - PaginatedAnnouncements: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/Announcement' - WhatsNewItem: + $ref: '#/components/schemas/ImpactStoreSearchResult' + + LibrarySearchResult: type: object - description: An announcement in the signed-in user's Wishlist › What's new, with whether they have seen it + description: A library item found by **Search the library**. Metrics also have `metric_type` and `choices`; Lists have `choices`. + additionalProperties: true properties: id: type: integer - title: - type: string - description: The headline. - body: + type: type: string - starts_on: + enum: [survey, metric, activity_tracker, outcome, list, unit, field, contact_form, case_form, impact_framework, toolkit, project_type, idea] + name: type: string - format: date - ends_on: + nullable: true + description: type: string - format: date - section: + nullable: true + description: One line of plain text + owner: type: string - enum: [new_since_joined, before_joined] - visual_type: + enum: [your organisation, public library, Makerble] + + ExploreSurvey: + type: object + description: A Survey (Story Category) listed on Explore Surveys + properties: + id: + type: integer + name: type: string - enum: [name_change, vimeo, image, intro_animation, storyboard, none] - image_url: + description: type: string nullable: true - image_alt: + shared_by: type: string nullable: true - vimeo_url: + description: The organisation (or person) that published it + tag: type: string nullable: true - learn_more_url: - type: string + enum: [Verdicts, Validated, null] + question_count: + type: integer + estimated_minutes: + type: integer nullable: true - description: A page in the Makerble User Guide. - button_label: + description: About how long it takes to answer, worked out from its questions + themes: + type: array + items: + type: string + audiences: + type: array + description: Who answers it + items: + type: string + contact_mode: type: string - includes_tour: + enum: [one_contact, several_contacts] + description: How the survey is shown when someone tries it on a toolkit page, About one contact (`one_contact`) or for Several or no contacts (`several_contacts`) + repeats_at_intervals: type: boolean - description: Whether its button starts a feature tour, which it does while the tour is live. - feature_tour_id: + validated: + type: boolean + description: An industry-recognised, validated scale + verdicts: + type: boolean + description: Verdicts are set up, so it classifies each respondent automatically + libraries_count: type: integer - nullable: true - description: The live feature tour its button starts, or null. - asked_for: + description: How many organisations have it in one of their projects + yours: type: boolean - description: Whether it answered one of the user's requests in Wishlist › Your wishlist. - seen: + description: Your organisation published it + added_to_a_project: type: boolean - description: Whether the user has seen it, in the popup or by opening it in What's new. - seen_at: + description: It is already in one of your organisation's projects + + ExploreFacetGroup: + type: object + properties: + key: type: string - format: date-time - nullable: true - updated_at: + description: The filter's query parameter, e.g. theme. Each Explore endpoint lists its own. + label: type: string - format: date-time - required: [id, title, body, starts_on, section, visual_type, includes_tour, asked_for, seen, seen_at] - PaginatedWhatsNew: - allOf: - - $ref: '#/components/schemas/PaginationEnvelope' - - type: object - properties: - data: - type: array - items: - $ref: '#/components/schemas/WhatsNewItem' - Wish: + options: + type: array + items: + type: object + properties: + value: + type: string + label: + type: string + count: + type: integer + description: How many Surveys this option would return, given the other filters already chosen + selected: + type: boolean + + PaginatedExploreSurveys: type: object - description: A feature request or feedback from Wishlist › Your wishlist properties: - id: + page: type: integer - kind: - type: string - enum: [feature_request, feedback] - body: - type: string - status: - type: string - description: Where it is, as the person sees it, e.g. "Received", "Read by the Makerble team" or "Shipped". - helpdesk_key: - type: string - nullable: true - description: The Helpdesk ticket a feature request became (e.g. MC-2501), once it exists. - charity_id: + page_size: type: integer - nullable: true - description: The organisation it's about. - announcement_id: + page_count: type: integer - nullable: true - description: The Announcement that answered it, if one has. - created_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - WishInput: - type: object - required: [kind, body] - properties: - kind: - type: string - enum: [feature_request, feedback] - body: - type: string - maxLength: 2000 - charity_id: + total_count: type: integer - description: One of your organisations. Needed only if you belong to more than one. - PaginatedWishes: + data: + type: array + items: + $ref: '#/components/schemas/ExploreSurvey' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreReportTemplatePreview: allOf: - - $ref: '#/components/schemas/PaginationEnvelope' + - $ref: '#/components/schemas/ExploreReportTemplate' - type: object properties: - data: + questions: type: array items: - $ref: '#/components/schemas/Wish' - RoadmapItem: + type: object + properties: + title: + type: string + answer_formats: + type: array + items: + type: string + enum: [narrative, number, chart] + + ExploreReportTemplate: type: object - description: Something in Wishlist › Coming soon properties: id: type: integer - title: + slug: type: string - body: + name: type: string - stage: + description: type: string - enum: [building_now, up_next] - stage_label: + nullable: true + recipient: type: string - enum: [Building now, Up next] - position: + nullable: true + enum: [funder, trustees, local_authority, corporate_partner, internal, null] + theme: + type: string + nullable: true + question_count: type: integer - description: Its order within its stage. - published: + answer_formats: + type: array + items: + type: string + enum: [narrative, number, chart] + shared_by: + type: string + libraries_count: + type: integer + description: How many organisations have it in their library + yours: type: boolean - stale: + description: Whether one of the caller's organisations owns it + in_your_library: type: boolean - description: Unchanged for 60 days. - created_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - RoadmapItemInput: + description: Whether it is in the library of one of the caller's organisations + + PaginatedExploreReportTemplates: type: object properties: - title: - type: string - maxLength: 90 - body: - type: string - maxLength: 280 - stage: - type: string - enum: [building_now, up_next] - published: - type: boolean - PaginatedRoadmapItems: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExploreReportTemplate' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreDropdownPreview: allOf: - - $ref: '#/components/schemas/PaginationEnvelope' + - $ref: '#/components/schemas/ExploreDropdown' - type: object properties: - data: + choices: type: array items: - $ref: '#/components/schemas/RoadmapItem' - BulkProjectMove: + type: string + + ExploreDropdown: type: object - description: A move of many Contacts through Projects, and how far it has got properties: id: type: integer - status: + title: type: string - enum: [pending, running, completed, failed, undone] - total_count: - type: integer - description: Contacts the move will try to change (the selection, less Headline Only Contacts) - processed_count: - type: integer - description: Contacts reached so far - changed_count: + choice_count: type: integer - description: Contacts whose Projects or status changed - skip_counts: - type: object - additionalProperties: { type: integer } - description: Skipped Contacts by reason, e.g. headline_only, not_allowed or error - background: - type: boolean - description: True when the move runs in the background (more than 50 Contacts) - summary: - type: string - nullable: true - description: The finished message, e.g. "12 contacts changed. 3 skipped …"; null until it has finished - StartPage: - type: object - required: [start_page, options] - properties: - start_page: - type: string - enum: [newsfeed, focus, snapshot, autopilot] - description: The key of your start page; newsfeed when you have never chosen - options: + designed_for: type: array - description: The pages you can choose, in the order the Today section lists them items: - type: object - required: [key, label, description] - properties: - key: - type: string - description: e.g. focus - label: - type: string - description: Its name under Today, e.g. Focus - description: - type: string - description: The line under it in Personal Settings › Preferences - FocusSource: - type: object - required: [key, label, shown] - properties: - key: - type: string - description: e.g. checklist_actions - label: + type: string + enum: [surveys_and_trackers, forms] + themes: + type: array + items: + type: string + enum: [scales, demographics] + shared_by: type: string - description: Its name under ⚙ What Focus shows you, e.g. Checklist Actions - shown: + nullable: true + used_in_count: + type: integer + description: How many surveys, trackers and forms use it + yours: type: boolean - description: False when you have switched it off - FocusItem: + description: Whether the caller or one of the caller's organisations owns it + + PaginatedExploreDropdowns: type: object - required: [id, type, title, context, contact, url, due_on, raised_on, due_text, section, action] properties: - id: - type: string - description: Unique across every source, e.g. checklist_actions-812 - type: - type: string - description: The source it came from, e.g. checklist_actions - title: - type: string - description: What it is, e.g. the Checklist step - context: - type: string - description: Where it belongs, e.g. "Checklist Action · Intake · step 2 of 5", plus who is responsible when it isn't you - contact: - type: object - nullable: true - description: The Contact it is about, when there is one - required: [id, name] - properties: - id: - type: integer - name: - type: string - url: - type: string - description: Where the row leads - due_on: - type: string - format: date - nullable: true - description: The day it is due, or null - raised_on: - type: string - format: date - nullable: true - description: For something with no due date, the day it was raised - due_text: - type: string - description: e.g. "15 days overdue", "Due today", "Due in 4 days", "No due date" - section: - type: string - enum: [overdue, today, this_week, later] - action: - type: object - description: The row's one button - required: [label, url, method] + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExploreDropdown' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + + ExploreImpactFrameworkPreview: + allOf: + - $ref: '#/components/schemas/ExploreImpactFramework' + - type: object properties: - label: - type: string - description: e.g. Open - url: - type: string - method: - type: string - description: The HTTP method, e.g. get - FocusFeed: + stages: + type: array + items: + type: object + properties: + title: + type: string + items: + type: array + items: + type: string + + ExploreImpactFramework: type: object - required: [scope, teams, type, sources, counts, sections, page, page_size, page_count, total_count, data] properties: - scope: + id: + type: integer + name: type: string - enum: [me, teams] - teams: - type: boolean - description: You are in a Team, so scope=teams is available - type: + description: type: string nullable: true - description: The type filtered by, or null for every type - sources: + themes: type: array items: - $ref: '#/components/schemas/FocusSource' - counts: - type: object - description: "`all`, and the number of items of each type that has any, e.g. {all: 4, checklist_actions: 4}" - required: [all] - additionalProperties: - type: integer - properties: - all: - type: integer - sections: + type: string + framework_sets: type: array - description: The sections that have items, in order + description: The platform-wide Framework Sets it belongs to items: type: object - required: [key, label, count] properties: - key: + id: + type: integer + name: type: string - enum: [overdue, today, this_week, later] - label: + short_code: type: string - count: - type: integer + nullable: true + outcome_count: + type: integer + progress_tracker_count: + type: integer + shared_by: + type: string + nullable: true + libraries_count: + type: integer + description: How many organisations use it on a project + yours: + type: boolean + description: Whether the caller or one of the caller's organisations owns it + + PaginatedExploreImpactFrameworks: + type: object + properties: page: type: integer page_size: @@ -20823,43 +23279,44 @@ components: data: type: array items: - $ref: '#/components/schemas/FocusItem' + $ref: '#/components/schemas/ExploreImpactFramework' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' - ImpactStoreSearchResult: + ExploreIdeaPreview: + allOf: + - $ref: '#/components/schemas/ExploreIdea' + - type: object + properties: + text: + type: string + + ExploreIdea: type: object - description: A published ImpactStore item found by **Search the ImpactStore**. properties: id: type: integer - type: - type: string - enum: [survey, contact_form, case_form, impact_framework, report_template, toolkit, project_type] - type_label: - type: string - description: The front-end name of the type, e.g. Contact Form - name: - type: string - description: + title: type: string - nullable: true - description: One line of plain text (always null for a Case Form) - causes: + themes: type: array items: type: string - description: Cause and subcause names, causes first - used_by_count: + reading_minutes: type: integer - description: How many organisations use it - explore_url: + shared_by: type: string nullable: true - description: Its page on Explore (null for a Project Type) - matched_words: + saved_count: type: integer - description: How many of the query's words it matched + description: How many collections it has been saved to + yours: + type: boolean + description: Whether the caller or one of the caller's organisations owns it - PaginatedImpactStoreSearch: + PaginatedExploreIdeas: type: object properties: page: @@ -20873,109 +23330,57 @@ components: data: type: array items: - $ref: '#/components/schemas/ImpactStoreSearchResult' + $ref: '#/components/schemas/ExploreIdea' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' - LibrarySearchResult: - type: object - description: A library item found by **Search the library**. Metrics also have `metric_type` and `choices`; Lists have `choices`. - additionalProperties: true - properties: - id: - type: integer - type: - type: string - enum: [survey, metric, activity_tracker, outcome, list, unit, field, contact_form, case_form, impact_framework, toolkit, project_type, idea] - name: - type: string - nullable: true - description: - type: string - nullable: true - description: One line of plain text - owner: - type: string - enum: [your organisation, public library, Makerble] + ExploreMetricPreview: + allOf: + - $ref: '#/components/schemas/ExploreMetric' + - type: object + properties: + description: + type: string + nullable: true + details: + type: object + description: The metric's key facts, by label + additionalProperties: + type: string + choices: + type: array + items: + type: string - ExploreSurvey: + ExploreMetric: type: object - description: A Survey (Story Category) listed on Explore Surveys properties: + kind: + type: string + enum: [change, indicator, financial_value] id: type: integer name: type: string - description: + stage: type: string - nullable: true - shared_by: + enum: [activities, engagement, ability, behaviour, effect, financial_values] + whats_inside: type: string - nullable: true - description: The organisation (or person) that published it - tag: + description: The tracker type or scale, e.g. "5-level scale" or "Activity tracker · count" + shared_by: type: string nullable: true - enum: [Verdicts, Validated, null] - question_count: - type: integer - estimated_minutes: - type: integer - nullable: true - description: About how long it takes to answer, worked out from its questions - themes: - type: array - items: - type: string - audiences: - type: array - description: Who answers it - items: - type: string - contact_mode: - type: string - enum: [one_contact, several_contacts] - description: How the survey is shown when someone tries it on a toolkit page, About one contact (`one_contact`) or for Several or no contacts (`several_contacts`) - repeats_at_intervals: - type: boolean - validated: - type: boolean - description: An industry-recognised, validated scale - verdicts: - type: boolean - description: Verdicts are set up, so it classifies each respondent automatically libraries_count: type: integer - description: How many organisations have it in one of their projects + description: How many organisations use it on a project yours: type: boolean - description: Your organisation published it - added_to_a_project: - type: boolean - description: It is already in one of your organisation's projects - - ExploreFacetGroup: - type: object - properties: - key: - type: string - enum: [theme, audience, time, feature] - label: - type: string - options: - type: array - items: - type: object - properties: - value: - type: string - label: - type: string - count: - type: integer - description: How many Surveys this option would return, given the other filters already chosen - selected: - type: boolean + description: Whether the caller or one of the caller's organisations owns it - PaginatedExploreSurveys: + PaginatedExploreMetrics: type: object properties: page: @@ -20989,7 +23394,7 @@ components: data: type: array items: - $ref: '#/components/schemas/ExploreSurvey' + $ref: '#/components/schemas/ExploreMetric' facets: type: array items: @@ -21878,6 +24283,46 @@ components: event_id: { type: integer } guests_count: { type: integer } + BeneficiaryBulkAction: + type: object + description: A change to many Contacts at once, and how far it has got + properties: + id: + type: integer + status: + type: string + enum: [pending, running, completed, failed, undone] + total_count: + type: integer + description: Contacts it will try to change (the selection, less Headline Only Contacts) + processed_count: + type: integer + description: Contacts reached so far + changed_count: + type: integer + description: Contacts it changed + skip_counts: + type: object + additionalProperties: { type: integer } + description: Skipped Contacts by reason, e.g. headline_only, not_in_project or error + background: + type: boolean + description: True when it runs in the background (more than 50 Contacts) + summary: + type: string + nullable: true + description: The finished message, e.g. "6 contacts changed. 1 skipped …"; null until it has finished + + EventGuestsBulkAdd: + allOf: + - $ref: '#/components/schemas/BeneficiaryBulkAction' + - type: object + properties: + event_id: { type: integer } + guests_count: + type: integer + description: The event's guests now (while it runs in the background, so far) + EventStaffMember: type: object required: [user_id, name, roles, event_role] @@ -24219,6 +26664,12 @@ components: When true, a Contact who opens their personal survey link (Survey Invitation) without signing in can press Save & Finish Later and come back to the same link to finish. Unfinished responses are deleted 30 days after they were last saved. + hide_unanswered_questions: + type: boolean + description: >- + "Hide unanswered questions when viewing the story" on the Survey Campaign Settings page. When true, + viewing one contact's response (for example on their profile timeline) leaves out the questions they + did not answer. Read-only through the API. is_stopped: type: boolean display_intro_message: @@ -26435,6 +28886,21 @@ components: items: type: string enum: [editor, reporter, observer] + contact_criteria: + $ref: '#/components/schemas/WorkflowTrackerContactCriteria' + + WorkflowTrackerContactCriteria: + type: object + description: >- + "Only count contacts who match": Contact Filters criteria, in the same shape as a Cohort Tracker's criteria + and a Saved Filter's, that a Contact must meet for their items to count. Matched on each Contact's current + details, so editing a Contact can change past results. {} counts every Contact. Keys a Contacts filter + doesn't read, and blank values, are dropped. + additionalProperties: true + example: + age_to: + year: "17" + beneficiary_types: ["3"] WorkflowTracker: type: object @@ -26471,6 +28937,8 @@ components: example: destinations: "except" project_ids: [4512] + contact_criteria: + $ref: '#/components/schemas/WorkflowTrackerContactCriteria' created_at: type: string format: date-time @@ -26865,46 +29333,159 @@ components: properties: project_id: type: integer - period_end: + period_end: + type: string + format: date + result_kind: + type: string + enum: [additive, snapshot] + results: + $ref: '#/components/schemas/FormulaTrackerTimeframeResults' + warnings: + type: array + items: + type: string + trackers: + type: array + description: Each tracker the formula uses, with its own results + items: + type: object + properties: + type: + type: string + id: + type: integer + name: + type: string + type_name: + type: string + results: + $ref: '#/components/schemas/FormulaTrackerTimeframeResults' + + FormulaTrackerRequest: + type: object + properties: + formula_tracker: + allOf: + - $ref: '#/components/schemas/FormulaTrackerAttributes' + - type: object + properties: + charity_id: + type: integer + description: Required when creating + + FormulaTrackerResult: + type: object + properties: + formula_tracker_id: + type: integer + name: + type: string + project_id: + type: integer + description: Present for a Project's result + album_id: + type: integer + description: Present for an Album's result + timeframe: + type: string + enum: [period, year_to_date, all_time] + starts_on: + type: string + format: date + nullable: true + description: Null when the window runs from the start + ends_on: type: string format: date result_kind: type: string enum: [additive, snapshot] - results: - $ref: '#/components/schemas/FormulaTrackerTimeframeResults' - warnings: - type: array - items: - type: string + as_of: + type: string + format: date + nullable: true + description: For a snapshot, the date it is read at + display_format: + type: string + enum: [number, percentage] + decimal_places: + type: integer + unit: + type: string + description: '"percentage", the unit label (e.g. "h per child"), or "count"' + number: + type: number + nullable: true + description: Null when a tracker the formula uses has no result, or it divides by 0 + display_value: + type: string + description: The result as the Results Canvas shows it, e.g. "37.5%" or "2.4 h per child"; "–" when number is null + target: + type: number + nullable: true + formula: + type: string + description: e.g. "Referrals completed = External referrals + Internal referrals" + formula_with_values: + type: string + description: The formula with each tracker's number in place, e.g. "2 + 3"; "–" for a tracker with no number trackers: type: array - description: Each tracker the formula uses, with its own results items: type: object properties: type: type: string + description: Change, Indicator, CohortTracker, WorkflowTracker, FilteredMetric or FormulaTracker id: type: integer name: type: string type_name: type: string - results: - $ref: '#/components/schemas/FormulaTrackerTimeframeResults' - - FormulaTrackerRequest: - type: object - properties: - formula_tracker: - allOf: - - $ref: '#/components/schemas/FormulaTrackerAttributes' - - type: object - properties: - charity_id: - type: integer - description: Required when creating + description: e.g. "Engagement tracker" or "Workflow Tracker" + unit: + type: string + number: + type: number + nullable: true + itemised: + type: boolean + description: Whether the formula only adds Workflow Trackers that count items, so data lists them + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + description: Every item counted, when itemised; otherwise 0 + hidden_count: + type: integer + description: How many more on this page are counted but not listed, because the user can't see them + data: + type: array + items: + type: object + properties: + contact_id: + type: integer + contact_name: + type: string + detail: + type: string + nullable: true + project_id: + type: integer + nullable: true + case_id: + type: integer + nullable: true + happened_at: + type: string + format: date-time FormulaTrackerTimeframeResults: type: object @@ -27471,6 +30052,15 @@ components: active: type: boolean description: false while paused + source: + type: string + enum: [manual, power_automate, zapier, dynamics] + readOnly: true + description: | + Who created the endpoint: `manual` for one added by hand on the Webhooks page or through + this API, otherwise the automation platform's connector. Set by Makerble from the + connected app (OAuth client) that made the request; it can't be sent or changed. A + connected app may list, get, create and delete endpoints, in its connected Organisation only. disabled_at: type: string format: date-time @@ -27901,6 +30491,141 @@ components: type: string format: date-time + EventFormatProject: + type: object + properties: + event_category_id: + type: integer + project_id: + type: integer + status: + type: string + enum: [added, already_added, removed] + + EventCatalogueFilters: + type: object + description: Which upcoming events the catalogue shows. Every filter given must match. + properties: + project_ids: + type: array + items: + type: integer + event_category_ids: + type: array + items: + type: integer + description: Event Formats + user_ids: + type: array + items: + type: integer + description: Events these users are Event Managers or Workers of + beneficiary_ids: + type: array + items: + type: integer + description: Events these Contacts are guests of + event_types: + type: array + items: + type: string + enum: [one-off, master, subsequent] + date_from: + type: string + nullable: true + description: A date range, "DD/MM/YYYY - DD/MM/YYYY" + + EventCatalogue: + type: object + description: An Event Catalogue, a public, bookable list of an organisation's upcoming events. + properties: + id: + type: integer + name: + type: string + charity_id: + type: integer + filters: + $ref: '#/components/schemas/EventCatalogueFilters' + public_url: + type: string + description: The public page people book from, which can also be embedded on a website + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + + EventCatalogueDetail: + allOf: + - $ref: '#/components/schemas/EventCatalogue' + - type: object + properties: + upcoming_events_count: + type: integer + description: How many events its public page shows now + + PaginatedEventCatalogues: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/EventCatalogue' + + EventCatalogueAccess: + type: object + properties: + event_catalogue_id: + type: integer + project_id: + type: integer + mode: + type: string + enum: [every_enrolled, specific] + contact_ids: + type: array + description: The Contacts ticked, under specific + items: + type: integer + + PortalLink: + type: object + properties: + contact_id: + type: integer + name: + type: string + link_status: + type: string + enum: [active, deactivated, none] + description: none means the Contact has never been sent a link + last_sent_at: + type: string + format: date-time + nullable: true + last_sent_channel: + type: string + enum: [email, sms] + nullable: true + can_email: + type: boolean + can_sms: + type: boolean + + PaginatedPortalLinks: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/PortalLink' + PaginatedEventFormats: allOf: - $ref: '#/components/schemas/PaginationEnvelope' @@ -28868,6 +31593,99 @@ components: items: $ref: '#/components/schemas/ApiKey' + CaseNote: + type: object + properties: + id: + type: integer + charity_id: + type: integer + project_id: + type: integer + user_id: + type: integer + description: The colleague who recorded it + user_name: + type: string + nullable: true + note_type: + type: string + enum: [case_note, session_note] + description: "`case_note` is about one Contact (Beneficiary); `session_note` is about an Event" + status: + type: string + enum: [queued, recording, transcribing, completed, failed, stitching, summarizing] + beneficiary_id: + type: integer + nullable: true + beneficiary_name: + type: string + nullable: true + event_id: + type: integer + nullable: true + draft_story_id: + type: integer + nullable: true + description: The draft survey response written from the summary, once there is one + story_id: + type: integer + nullable: true + description: The survey response (Story) saved from that draft + started_at: + type: string + format: date-time + duration_seconds: + type: integer + nullable: true + source: + type: string + enum: [product, manual] + description: "`product` when recorded in Makerble, `manual` when an audio file was attached" + platform: + type: string + enum: [desktop_web, mobile_web, api] + nullable: true + description: Where it was started; null for Audio Notes made before this was recorded + has_recording: + type: boolean + description: false once the recording has been deleted, or before it is uploaded + audio_deleted_at: + type: string + format: date-time + nullable: true + description: When the recording was deleted, if it has been + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + + CaseNoteDetail: + allOf: + - $ref: '#/components/schemas/CaseNote' + - type: object + properties: + transcript: + type: string + nullable: true + description: "The transcript, one paragraph per speaker turn (Speaker A: ...)" + summary: + type: string + nullable: true + description: The AI summary + + PaginatedCaseNotes: + allOf: + - $ref: '#/components/schemas/PaginationEnvelope' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/CaseNote' + PaginatedWebhookEndpoints: allOf: - $ref: '#/components/schemas/PaginationEnvelope' diff --git a/server.js b/server.js index bde9b62..e257632 100644 --- a/server.js +++ b/server.js @@ -932,6 +932,7 @@ function buildDocsPage() { POSTContacts GETContact Bio Forms POSTCases + POSTAudio Notes + @@ -1100,6 +1112,53 @@ function buildDocsPage() { + +

Connecting an app with OAuth 2.0

+
+

Apps published for other people to use, such as marketplace connectors, connect with OAuth 2.0 instead of asking for a password. The user signs in to Makerble, chooses which of their organisations the app may use, and selects Allow. The app then calls the API as that user, limited to that organisation.

+
    +
  1. Get a client ID and secret. Makerble registers client applications: email api-key-request@makerble.com with your app's name and its exact redirect URI (https only).
  2. +
  3. Send the user to https://makerble.com/oauth/authorize?response_type=code&client_id=…&redirect_uri=…&scope=api&state=…. After the consent screen, Makerble redirects to your redirect URI with ?code=…&state=…, or ?error=access_denied if the user cancels.
  4. +
  5. Exchange the code at POST https://makerble.com/oauth/token. It works once and expires after 10 minutes.
  6. +
  7. Call the API with Authorization: Bearer <access_token> instead of the X-User-* headers.
  8. +
  9. Refresh when the access token expires (after 1 hour). Refresh tokens don't expire, but each refresh returns a new one: always store the latest.
  10. +
+
+ + + + + + + +
SituationResponse
Token expired or revoked, or the user is no longer in the connected organisation401 {"error":"invalid_token"}
Endpoint not yet available to connected apps403 {"error":"not_available_to_connected_apps"}
+ +
+ ℹ + A connected app sees only the organisation the user chose, with that user's permissions there. It can call the same endpoints as an Organisation API key, and gets 403 with not_available_to_connected_apps from any other. Users and Organisation Admins can disconnect an app at any time from Settings → Connected Apps, and it stops working straight away. +
+ +
+ ${endpointCard("POST", "/oauth/token", "Exchange a code, or refresh a token (OAuth 2.0)", false, [ + { name: "grant_type", in: "body", required: true, desc: "authorization_code or refresh_token" }, + { name: "code", in: "body", desc: "For authorization_code: the code from the redirect" }, + { name: "redirect_uri", in: "body", desc: "For authorization_code: the same redirect URI used on /oauth/authorize" }, + { name: "refresh_token", in: "body", desc: "For refresh_token: the latest refresh token" }, + { name: "client_id", in: "body", required: true, desc: "Your app's client ID" }, + { name: "client_secret", in: "body", required: true, desc: "Your app's client secret (or send both with HTTP Basic auth)" }, + ], [ + { code: 200, cls: "response-2xx", desc: "access_token, token_type: Bearer, expires_in: 3600, refresh_token, scope: api" }, + { code: 400, cls: "response-4xx", desc: "invalid_grant: the code or refresh token is invalid, expired or already used" }, + { code: 401, cls: "response-4xx", desc: "invalid_client: unknown client or wrong secret" }, + ], "

Sent to https://makerble.com/oauth/token, not under /api/v2. Body is form-urlencoded.

")} + ${endpointCard("POST", "/oauth/revoke", "Revoke a token (OAuth 2.0)", false, [ + { name: "token", in: "body", required: true, desc: "An access or refresh token. Revoking either stops both working" }, + { name: "client_id", in: "body", required: true, desc: "Your app's client ID" }, + { name: "client_secret", in: "body", required: true, desc: "Your app's client secret" }, + ], [ + { code: 200, cls: "response-2xx", desc: "Revoked, or already invalid" }, + ], "

Sent to https://makerble.com/oauth/revoke, not under /api/v2. Use it when the user disconnects from inside your app.

")} +
@@ -1311,8 +1370,10 @@ function buildDocsPage() { ${endpointCard("POST", "/projects/add_colleague.json", "Add users to a Project", true, [], [ { code: "200", cls: "response-2xx", desc: "Users added successfully" }, { code: "401", cls: "response-4xx", desc: "Not authenticated" }, - { code: "422", cls: "response-4xx", desc: "Validation failed" } - ], "Grant one or more users a role on a Project. A user can hold Editor, Reporter, and Observer simultaneously. Pass user IDs in role_data[].editor_ids, reporter_ids, or observer_ids.")} + { code: "403", cls: "response-4xx", desc: "Not a Project Manager of one of the Projects or an Organisation Admin of its Organisation (e.g. a Changemaker)" }, + { code: "404", cls: "response-4xx", desc: "A Project wasn't found" }, + { code: "422", cls: "response-4xx", desc: "A user can't be added: not a colleague in the Project's Organisation" } + ], "Adds users to Projects' teams, as the Project's Add Users page does: as Project Managers (role_data[].editor_ids), Changemakers (reporter_ids) or Analysts (observer_ids). A user can hold more than one role. You must be a Project Manager of every listed Project or an Organisation Admin of its Organisation, and the users must already be colleagues in that Organisation unless its preference lets Project Managers add users from outside it. It's all or nothing: on any error nobody is added.")} ${endpointCard("POST", "/projects/bulk_status_change", "Close or reopen many Projects at once", true, [ { name: "status_action", type: "string", required: true, desc: "close or reopen" }, { name: "project_ids", type: "integer[]", required: true, desc: "The Projects to change, at most 200" }, @@ -1853,6 +1914,42 @@ function buildDocsPage() { { code: "401", cls: "response-4xx", desc: "Not authenticated" }, { code: "404", cls: "response-4xx", desc: "Not found, or started by someone else" } ], "Only the user who started the move can see it.")} + ${endpointCard("POST", "/beneficiaries/bulk_checklists", "Start a Checklist for many Contacts at once", true, [ + { name: "checklist_id", in: "body", type: "integer", required: true, desc: "The Checklist to start" }, + { name: "project_id", in: "body", type: "integer", required: true, desc: "The Project it is started through: one that lets colleagues add it by hand" }, + { name: "charity_id", in: "body", type: "integer", required: false, desc: "The organisation. Optional if you belong to only one" }, + { name: "beneficiary_ids", in: "body", type: "integer[]", required: false, desc: "The Contacts, at most 500. Leave out to choose them with filter_data" }, + { name: "filter_data", in: "body", type: "object", required: false, desc: "Manage Contacts filters choosing the Contacts" }, + { name: "excluded_ids", in: "body", type: "integer[]", required: false, desc: "Contacts matching the filters to leave out" } + ], [ + { code: "200", cls: "response-2xx", desc: "Up to 50 Contacts, started straight away: id, status, changed_count, skip_counts and summary" }, + { code: "202", cls: "response-2xx", desc: "More than 50 Contacts: started in the background. Poll GET /beneficiaries/bulk_actions/{id} with the id" }, + { code: "401", cls: "response-4xx", desc: "Not authenticated" }, + { code: "404", cls: "response-4xx", desc: "An organisation you aren't in" }, + { code: "422", cls: "response-4xx", desc: "A Checklist or Project you can't start it through, more than 500 beneficiary_ids, or no charity_id when you belong to several organisations" } + ], "Add to › A Checklist for the Contacts selected on the Manage Contacts page. Each Contact is started as Add a Checklist on their profile does, and steps their records already prove done are ticked off. Contacts outside the Project are skipped (skip_counts.not_in_project), as are those you only have Headline Only Access to (skip_counts.headline_only). Contacts who already have the Checklist keep their progress. Organisation Editors and Reporters may use any open Project; others only Projects they are an Editor or Reporter of.")} + ${endpointCard("POST", "/beneficiaries/bulk_relationships", "Link many Contacts to one Contact with the same relationship", true, [ + { name: "relationship_category_id", in: "body", type: "integer", required: true, desc: "One of the organisation's Relationship Categories (GET /relationship_categories)" }, + { name: "related_contact_id", in: "body", type: "integer", required: true, desc: "The Contact everyone is linked to" }, + { name: "related_contact_is", in: "body", type: "string", required: true, desc: "parent or child: which side of the category the related Contact takes. The selected Contacts take the other" }, + { name: "charity_id", in: "body", type: "integer", required: false, desc: "The organisation. Optional if you belong to only one" }, + { name: "beneficiary_ids", in: "body", type: "integer[]", required: false, desc: "The Contacts, at most 500. Leave out to choose them with filter_data" }, + { name: "filter_data", in: "body", type: "object", required: false, desc: "Manage Contacts filters choosing the Contacts" }, + { name: "excluded_ids", in: "body", type: "integer[]", required: false, desc: "Contacts matching the filters to leave out" } + ], [ + { code: "200", cls: "response-2xx", desc: "Up to 50 Contacts, linked straight away: id, status, changed_count, skip_counts and summary" }, + { code: "202", cls: "response-2xx", desc: "More than 50 Contacts: linked in the background. Poll GET /beneficiaries/bulk_actions/{id} with the id" }, + { code: "401", cls: "response-4xx", desc: "Not authenticated" }, + { code: "404", cls: "response-4xx", desc: "An organisation you aren't in" }, + { code: "422", cls: "response-4xx", desc: "Another organisation's category or Contact, an unknown side, more than 500 beneficiary_ids, or no charity_id when you belong to several organisations" } + ], "Add to › A relationship for the Contacts selected on the Manage Contacts page, e.g. making Oakfield School the School of every selected pupil. Each relationship is added as Add a Relationship on a Contact's profile does and appears on both Contacts' History. Skipped Contacts are counted in skip_counts: already_linked (they already have that relationship with that Contact), same_contact, headline_only and not_allowed.")} + ${endpointCard("GET", "/beneficiaries/bulk_actions/{id}", "Get the progress of a bulk action on Contacts", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The id returned by a bulk change, e.g. POST /events/{id}/guests with filter_data" } + ], [ + { code: "200", cls: "response-2xx", desc: "action_name (e.g. add_to_event, move_through_projects), status (pending, running, completed, failed or undone), processed_count of total_count, changed_count, skip_counts, and summary once finished" }, + { code: "401", cls: "response-4xx", desc: "Not authenticated" }, + { code: "404", cls: "response-4xx", desc: "Not found, or started by someone else" } + ], "Works for any change to many Contacts at once. Only the user who started it can see it.")} ${endpointCard("POST", "/beneficiaries/bulk_groups", "Add many Contacts to Groups, or take them out of Groups", true, [ { name: "add_ids", in: "body", type: "integer[]", required: false, desc: "Groups to add every Contact to, from GET /groups" }, { name: "remove_ids", in: "body", type: "integer[]", required: false, desc: "Groups to take every Contact out of. Give at least one of add_ids and remove_ids, and never the same Group in both" }, @@ -2112,6 +2209,55 @@ function buildDocsPage() { + +
+
Core resource
+

Audio Notes

+
+

AI AudioNotes (CaseNotes in the API) are audio recordings of a conversation with one Contact (note_type: case_note) or of an Event session (note_type: session_note). Makerble transcribes and summarises each one, then writes a draft survey response from the summary for a colleague to check and save. These endpoints return the same Audio Notes the user sees on the Audio Notes page: every one in the Organisations they are an admin of and the Projects they are a Project Editor of, plus the ones they recorded themselves.

+

source is product for a recording made in Makerble and manual for an attached audio file. platform is desktop_web, mobile_web or api, and null for notes made before it was recorded.

+
+
+ ${endpointCard("GET", "/case_notes", "List Audio Notes", true, [ + { name: "charity_id", type: "integer", required: false, desc: "Only Audio Notes in this Organisation" }, + { name: "project_id", type: "integer", required: false, desc: "Only Audio Notes in this Project" }, + { name: "beneficiary_id", type: "integer", required: false, desc: "Only CaseNotes about this Contact" }, + { name: "event_id", type: "integer", required: false, desc: "Only SessionNotes about this Event" }, + { name: "note_type", type: "string", required: false, desc: "case_note or session_note" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Records per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 incremental sync" } + ], [{ code: "200", cls: "response-2xx", desc: "Paginated list of Audio Notes, newest first" }])} + ${endpointCard("GET", "/case_notes/{id}", "Get an Audio Note", true, [ + { name: "id", type: "integer", required: true, in: "path", desc: "Audio Note (CaseNote) ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Audio Note with its transcript and summary" }, + { code: "404", cls: "response-4xx", desc: "Not found, or not one the user may see" } + ])} + ${endpointCard("POST", "/case_notes", "Attach an audio file as a new Audio Note", true, [ + { name: "charity_id", type: "integer", required: true, in: "form", desc: "An Organisation with AI AudioNotes turned on" }, + { name: "project_id", type: "integer", required: true, in: "form", desc: "One of its running Projects the user is a member of" }, + { name: "note_type", type: "string", required: true, in: "form", desc: "case_note or session_note" }, + { name: "beneficiary_id", type: "integer", required: false, in: "form", desc: "Required for a case_note: a Contact in the Project the user may see" }, + { name: "event_id", type: "integer", required: false, in: "form", desc: "Optional for a session_note: an Event in the Project the user manages or works on" }, + { name: "audio_file", type: "file", required: true, in: "form", desc: "MP3, M4A, MP4, WAV, WEBM, OGG, OGA, AAC or FLAC, up to 200 MB" } + ], [ + { code: "201", cls: "response-2xx", desc: "Created and queued for transcription" }, + { code: "422", cls: "response-4xx", desc: "A choice is missing or not allowed, or the file is not supported audio" }, + { code: "503", cls: "response-5xx", desc: "The file could not be stored; nothing was created" } + ], "Send as multipart/form-data, then poll GET /case_notes/{id} until status is completed.")} + ${endpointCard("DELETE", "/case_notes/{id}/recording", "Delete an Audio Note's recording", true, [ + { name: "id", type: "integer", required: true, in: "path", desc: "Audio Note (CaseNote) ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Audio Note, with has_recording: false" }, + { code: "403", cls: "response-4xx", desc: "Only the Organisation's admins may delete a recording" }, + { code: "404", cls: "response-4xx", desc: "Not found, or not one the user may see" }, + { code: "422", cls: "response-4xx", desc: "Still being transcribed" }, + { code: "503", cls: "response-5xx", desc: "Could not be removed from storage; nothing changed" } + ], "Keeps the note, its transcript, summary and survey response. Cannot be undone.")} +
+
+
Surveys & Stories
@@ -2157,7 +2303,7 @@ function buildDocsPage() { ${endpointCard("GET", "/project_story_categories", "List Survey Campaigns", true, [ { name: "page", type: "integer", required: false, desc: "Page number" }, { name: "per_page", type: "integer", required: false, desc: "Records per page" } - ], [{ code: "200", cls: "response-2xx", desc: "Surveys deployed to specific Projects" }])} + ], [{ code: "200", cls: "response-2xx", desc: "Surveys deployed to specific Projects, with their display settings (including hide_unanswered_questions and allow_respondent_finish_later)" }])} ${endpointCard("PATCH", "/project_story_categories/{id}", "Change a Survey Campaign's settings", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Survey Campaign (Project Story Category) ID" }, { name: "force_interval", in: "body", type: "boolean", required: true, desc: "\"Force colleagues to select an interval\": when true and the campaign has Waves, every story, survey invitation, shared link and automation for it must name an interval" } @@ -2246,8 +2392,8 @@ function buildDocsPage() {

Send story.project_id, story.story_category_id and story.text, plus optional story.event_id, beneficiaries (Contact IDs), story_privacy and custom_fields.

Allowed for the Project's editors, reporters and observers, the organisation's editors and reporters, and the workers and managers of story.event_id when that Event belongs to the Project. Anyone else gets 403, as does a story.charity_id that isn't the Project's organisation.`)} ${endpointCard("GET", "/stories/story_category_response", "Get Stories with full survey response detail", true, [ - { name: "story_category_id", type: "integer", required: false, desc: "Filter by Survey" }, - { name: "project_ids[]", type: "integer", required: false, desc: "Filter by Project ID (repeat for multiple)" }, + { name: "story_category_ids", type: "string", required: false, desc: "Filter by one or more Surveys. Accepts a JSON array, repeated story_category_ids[] params, a comma-separated list or a single ID. Only Surveys you can access are returned. story_category_id is accepted as an alias" }, + { name: "project_ids", type: "string", required: false, desc: "Filter by one or more Project IDs. Same formats as story_category_ids" }, { name: "start_date", type: "string", required: false, desc: "YYYY-MM-DD — stories on or after this date" }, { name: "end_date", type: "string", required: false, desc: "YYYY-MM-DD — stories on or before this date" } ], [{ code: "200", cls: "response-2xx", desc: "Stories enriched with named Indicators, Changes, and Custom Field values — ideal for reporting" }])} @@ -2818,6 +2964,163 @@ function buildDocsPage() {
+ +
+
Reporting
+

Explore Report Templates

+
+

Explore Report Templates lists the Report Templates in the Makerble® ImpactStore™: funder reports, trustee updates, contract monitoring returns and other reports, each set out as the questions to answer. The API gives the same search, filters, counts and sort as the Explore Report Templates page. Every caller sees the same Report Templates; only yours and in_your_library depend on your organisations.

+

Filters take option keys, as arrays (theme[]=community) or comma-separated (theme=community,governance). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/report_templates", "Explore Report Templates", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Report Template's name or description, or who it's for or its theme" }, + { name: "recipient", type: "string", required: false, desc: "Who it's for: funder, trustees, local_authority (Commissioner or contract), corporate_partner, internal" }, + { name: "theme", type: "string", required: false, desc: "children_and_young_people, community, employment, governance, health_and_wellbeing, volunteering" }, + { name: "output", type: "string", required: false, desc: "Answer formats any of its questions ask for: narrative, number, chart" }, + { name: "sort", type: "string", required: false, desc: "added (in the most organisations' libraries first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Report Templates per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Report Templates updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Report Templates with id, slug, name, description, recipient, theme, question_count, answer_formats, shared_by, libraries_count (organisations with it in their library), yours and in_your_library, plus facets: each filter's options with how many Report Templates each would return given the other filters" } + ])} + ${endpointCard("GET", "/explore/report_templates/{id}", "Preview an Explore Report Template", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Report Template's id from Explore Report Templates" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Report Template's fields as above plus questions, each with its title and the answer_formats it asks for, in order" }, + { code: "404", cls: "response-4xx", desc: "Not in the ImpactStore" } + ], "To use a Report Template, add it to your organisation's library in Makerble with Add to your library on Explore Report Templates.")} +
+
+ + +
+
Forms and surveys
+

Explore Dropdowns

+
+

Explore Dropdowns lists the Dropdowns (answer-choice lists, Ratio Sets) shared to the Makerble® ImpactStore™ and approved: standard scales and category lists that make results compare cleanly across organisations. The API gives the same search, filters, counts and sort as the Explore Dropdowns page. Every caller sees the same Dropdowns; only yours depends on your organisations.

+

Filters take option keys, as arrays (theme[]=scales) or comma-separated (choices=up_to_10,11_to_100). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/dropdowns", "Explore Dropdowns", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Dropdown's title or any of its answer choices" }, + { name: "designed_for", type: "string", required: false, desc: "surveys_and_trackers, forms (bio, event and project forms)" }, + { name: "choices", type: "string", required: false, desc: "Number of answer choices: up_to_10, 11_to_100, over_100" }, + { name: "theme", type: "string", required: false, desc: "scales, demographics" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: Scales, Demographics, Equality monitoring" }, + { name: "sort", type: "string", required: false, desc: "added (used in the most surveys, trackers and forms first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Dropdowns per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Dropdowns updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Dropdowns with id, title, choice_count, designed_for, themes, shared_by, used_in_count (surveys, trackers and forms using it) and yours, plus facets: each filter's options with how many Dropdowns each would return given the other filters" } + ])} + ${endpointCard("GET", "/explore/dropdowns/{id}", "Preview an Explore Dropdown", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Dropdown's id from Explore Dropdowns" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Dropdown's fields as above plus every one of its answer choices, in order" }, + { code: "404", cls: "response-4xx", desc: "Not listed on Explore Dropdowns (not shared or not approved)" } + ], "To use a Dropdown, copy it into your organisation in Makerble with Add to organisation on Explore Dropdowns.")} +
+
+ + +
+
Impact framework
+

Explore Impact Frameworks

+
+

Explore Impact Frameworks lists the public, approved Impact Frameworks (Templates) in the Makerble® ImpactStore™: sets of outcomes and progress trackers across the stages of change. The API gives the same search, filters, counts and sort as the Explore Impact Frameworks page. Every caller sees the same Impact Frameworks; only yours depends on your organisations.

+

Filters take option keys, as arrays (theme[]=inclusion) or comma-separated (size=up_to_5,6_to_10). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/impact_frameworks", "Explore Impact Frameworks", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Impact Framework's name or description" }, + { name: "theme", type: "string", required: false, desc: "mental_health_and_wellbeing, children_and_young_people, employment_and_skills, community_and_culture, health, organisational, global_goals, inclusion, education_and_training, leadership" }, + { name: "set", type: "string", required: false, desc: "Part of a Framework Set: a platform-wide Framework Set's id (listed in facets), or none" }, + { name: "size", type: "string", required: false, desc: "Number of outcomes: up_to_5, 6_to_10, over_10" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: SDGs, Inclusion, Employment, Wellbeing" }, + { name: "sort", type: "string", required: false, desc: "added (on the most organisations' projects first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Impact Frameworks per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Impact Frameworks updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Impact Frameworks with id, name, description, themes, framework_sets (each with id, name and short_code), outcome_count, progress_tracker_count, shared_by, libraries_count (organisations using it on a project) and yours, plus facets" } + ])} + ${endpointCard("GET", "/explore/impact_frameworks/{id}", "Preview an Explore Impact Framework", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Impact Framework's id from Explore Impact Frameworks" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Impact Framework's fields as above plus stages, each stage of change with its title (Activities, Engagement, Ability, Behaviour or Effect) and its outcomes and progress trackers as items" }, + { code: "404", cls: "response-4xx", desc: "Not public and approved" } + ], "To use an Impact Framework, add it to projects in Makerble with Add to projects on Explore Impact Frameworks.")} +
+
+ + +
+
Learning
+

Explore Ideas

+
+

Explore Ideas lists the approved Ideas (Tips) shared with everyone in the Makerble® ImpactStore™: what other organisations tried, how it went and what they would change. The API gives the same search, filters, counts and sort as the Explore Ideas page. shared_by, person and yours depend on you: your colleagues, the people you follow and you.

+

Filters take option keys, as arrays (theme[]=leadership) or comma-separated (shared_by=colleagues,following). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/ideas", "Explore Ideas", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Idea's title or text" }, + { name: "shared_by", type: "string", required: false, desc: "anyone, colleagues, following, me" }, + { name: "theme", type: "string", required: false, desc: "mental_health_and_wellbeing, children_and_young_people, employment_and_skills, community_and_culture, health, organisational, global_goals, inclusion, education_and_training, leadership" }, + { name: "audience", type: "string", required: false, desc: "public_impact, personal, professional" }, + { name: "person", type: "string", required: false, desc: "User ids of colleagues or people you follow; any other id is ignored" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: Community, Young people, Training, Leadership" }, + { name: "sort", type: "string", required: false, desc: "added (saved to the most collections first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Ideas per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Ideas updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Ideas with id, title, themes, reading_minutes, shared_by, saved_count (collections it is saved to) and yours, plus facets" } + ])} + ${endpointCard("GET", "/explore/ideas/{id}", "Read an Explore Idea", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "The Idea's id from Explore Ideas" } + ], [ + { code: "200", cls: "response-2xx", desc: "The Idea's fields as above plus its text, without formatting" }, + { code: "404", cls: "response-4xx", desc: "Not approved and shared with everyone" } + ], "To keep an Idea, save it to a collection in Makerble with Save idea on Explore Ideas.")} +
+
+ + +
+
Impact framework
+

Explore Metrics

+
+

Explore Metrics lists the published, approved metrics of the Makerble® ImpactStore™ across the stages of change: progress trackers (kind change: Activities and Engagement), outcome indicators (indicator: Ability, Behaviour and Effect) and Financial Values (financial_value). The API gives the same search, filters, counts and sort as the Explore Metrics page. Every caller sees the same metrics; only yours depends on your organisations.

+

Filters take option keys, as arrays (stage[]=ability) or comma-separated (answer_format=scale,yes_no). Options in one filter match any of them; different filters must all match.

+
+
+ ${endpointCard("GET", "/explore/metrics", "Explore Metrics", true, [ + { name: "query", type: "string", required: false, desc: "Words in the metric's name or description" }, + { name: "stage", type: "string", required: false, desc: "activities, engagement, ability, behaviour, effect, financial_values" }, + { name: "answer_format", type: "string", required: false, desc: "count, scale, yes_no, value" }, + { name: "audience", type: "string", required: false, desc: "public_impact, personal, professional" }, + { name: "shared_by", type: "string", required: false, desc: "makerble, others" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: Wellbeing, Employment, Housing, Attendance, SDGs" }, + { name: "sort", type: "string", required: false, desc: "added (on the most organisations' projects first, default), new or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Metrics per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only metrics updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Metrics with kind, id, name, stage, whats_inside (e.g. 5-level scale), shared_by, libraries_count and yours, plus facets" } + ])} + ${endpointCard("GET", "/explore/metrics/{kind}/{id}", "Preview an Explore Metric", true, [ + { name: "kind", in: "path", type: "string", required: true, desc: "change, indicator or financial_value" }, + { name: "id", in: "path", type: "integer", required: true, desc: "The metric's id from Explore Metrics" } + ], [ + { code: "200", cls: "response-2xx", desc: "The metric's fields as above plus description, details (its key facts by label) and the choices of a scale or yes-or-no indicator" }, + { code: "404", cls: "response-4xx", desc: "Not published and approved" } + ], "To use a tracker or indicator, add it to a project in Makerble with Add to a project on Explore Metrics.")} +
+
+
Impact framework
@@ -3447,7 +3750,7 @@ function buildDocsPage() {
Impact framework

Workflow Trackers

-

A Workflow Tracker is a metric that counts records Makerble's own features create, rather than Contacts tagged in updates. Its source says what it counts: signpostings (Signpostings made from the Project, counted once whether they name the Organisation signposted to, the Person, or both; signpostings saved without a Project aren't counted anywhere), internal_referrals (Contacts in the Project who are added to another of the Organisation's Projects, dated by the Status in Projects history), cases_created (Cases created on the Project), cases_closed (each time one of those Cases is closed), cases_open (the Cases open at the end of each timeframe; always a snapshot) or time_spent (hours logged in Timesheets, to 1 decimal place: Task and Update Timesheets dated by their Update or by when the Task was done, and Event Timesheets dated by when the Event started, so time logged later lands in the period the work happened; Timesheets on draft Updates aren't counted; its unit is hours). count_mode is items (each signposting, referral, Case or closing; adds up across periods, except cases_open) or contacts (each Contact once; a snapshot). Confidential Cases are counted, but only listed to people who can see them. It is placed in an Impact Scorecard column like other metrics.

+

A Workflow Tracker is a metric that counts records Makerble's own features create, rather than Contacts tagged in updates. Its source says what it counts: signpostings (Signpostings made from the Project, counted once whether they name the Organisation signposted to, the Person, or both; signpostings saved without a Project aren't counted anywhere), internal_referrals (Contacts in the Project who are added to another of the Organisation's Projects, dated by the Status in Projects history), cases_created (Cases created on the Project), cases_closed (each time one of those Cases is closed), cases_open (the Cases open at the end of each timeframe; always a snapshot) or time_spent (hours logged in Timesheets, to 1 decimal place: Task and Update Timesheets dated by their Update or by when the Task was done, and Event Timesheets dated by when the Event started, so time logged later lands in the period the work happened; Timesheets on draft Updates aren't counted; its unit is hours). count_mode is items (each signposting, referral, Case or closing; adds up across periods, except cases_open) or contacts (each Contact once; a snapshot). Confidential Cases are counted, but only listed to people who can see them. It is placed in an Impact Scorecard column like other metrics. Set contact_criteria (\"Only count contacts who match\") to count only the items of Contacts who meet Contact Filters criteria, in the same shape as a Cohort Tracker's criteria; they are matched on each Contact's current details, so editing a Contact can change past results.

✓ @@ -3473,12 +3776,12 @@ function buildDocsPage() { { code: "200", cls: "response-2xx", desc: "results: {period, year_to_date, all_time} on the Project, and the latest records counted that the user may see, with hidden_count for the rest" }, { code: "404", cls: "response-4xx", desc: "The Project isn't the Organisation's" }, { code: "422", cls: "response-4xx", desc: "Unknown source or count_mode, or bad settings" } - ], "Body: charity_id, project_id, workflow_tracker: {source, count_mode, settings}. The Period ends at the Project's next deadline, or today when it has none ahead.")} + ], "Body: charity_id, project_id, workflow_tracker: {source, count_mode, settings, contact_criteria}. The Period ends at the Project's next deadline, or today when it has none ahead.")} ${endpointCard("POST", "/workflow_trackers", "Create a Workflow Tracker", true, [], [ { code: "201", cls: "response-2xx", desc: "Workflow Tracker created" }, { code: "403", cls: "response-4xx", desc: "Not an editor or reporter of the Organisation" }, { code: "422", cls: "response-4xx", desc: "Validation failed" } - ], "Body: workflow_tracker: {charity_id, name, description, source, count_mode, settings}. For internal_referrals, settings choose which Projects count as a referral: {destinations: \"any\"}, {destinations: \"only\", project_ids: [...]} or {destinations: \"except\", project_ids: [...]} (the default, with none listed). For the Cases sources, settings: {case_form_id: ...} counts only the Cases created with that Case Form; leave it out for any. For time_spent, settings: {kinds: [...], user_ids: [...], roles: [...]}: kinds are any of updates_and_tasks, event_staff (Event Workers and Event Managers) and event_guests (default the first two); user_ids and roles (editor: Organisation Admins and Project Managers, reporter: Changemakers, observer: Observers) count only those colleagues' time, and leave Event guests' time as it is. count_mode is always items.")} + ], "Body: workflow_tracker: {charity_id, name, description, source, count_mode, settings, contact_criteria}. contact_criteria (optional): Contact Filters criteria a Contact must meet for their items to count, e.g. {age_to: {year: \"17\"}}; {} counts every Contact. For internal_referrals, settings choose which Projects count as a referral: {destinations: \"any\"}, {destinations: \"only\", project_ids: [...]} or {destinations: \"except\", project_ids: [...]} (the default, with none listed). For the Cases sources, settings: {case_form_id: ...} counts only the Cases created with that Case Form; leave it out for any. For time_spent, settings: {kinds: [...], user_ids: [...], roles: [...]}: kinds are any of updates_and_tasks, event_staff (Event Workers and Event Managers) and event_guests (default the first two); user_ids and roles (editor: Organisation Admins and Project Managers, reporter: Changemakers, observer: Observers) count only those colleagues' time, and leave Event guests' time as it is. count_mode is always items.")} ${endpointCard("PATCH", "/workflow_trackers/{id}", "Update a Workflow Tracker", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Workflow Tracker ID" } ], [ @@ -3750,6 +4053,30 @@ function buildDocsPage() { { code: "200", cls: "response-2xx", desc: "Targets saved" }, { code: "403", cls: "response-4xx", desc: "Can't edit the Album's targets" } ])} + ${endpointCard("GET", "/formula_trackers/{id}/projects/{project_id}/results", "Get a Formula Tracker's result on a Project", true, [ + { name: "project_id", in: "path", type: "integer", required: true, desc: "Project ID" }, + { name: "timeframe", type: "string", required: false, desc: "period, year_to_date or all_time (default). Each timeframe is worked out from its own tracker numbers, so Year to Date of a percentage is Year to Date numerator ÷ Year to Date denominator" }, + { name: "as_of", type: "date", required: false, desc: "The deadline the window ends on (default: the next Target Deadline, or today)" }, + { name: "page", type: "integer", required: false, desc: "Page of items, when the formula adds trackers that count items" }, + { name: "per_page", type: "integer", required: false, desc: "Items per page (default 10, max 200)" } + ], [ + { code: "200", cls: "response-2xx", desc: "{number, display_value, target, result_kind, as_of, starts_on, ends_on, formula, formula_with_values, trackers: [{type, id, name, type_name, unit, number}], itemised, page, page_size, page_count, total_count, hidden_count, data}. number is null and display_value is \"–\" when there isn't enough data (a tracker has no result, or it divides by 0). When itemised, data lists the items counted, newest first; items you may not see are counted in hidden_count, never listed" }, + { code: "403", cls: "response-4xx", desc: "Can't see the Project's Results Canvas" }, + { code: "404", cls: "response-4xx", desc: "The tracker isn't on the Project" }, + { code: "422", cls: "response-4xx", desc: "Unknown timeframe or bad date" } + ])} + ${endpointCard("GET", "/formula_trackers/{id}/albums/{bundle_id}/results", "Get a Formula Tracker's result on an Album", true, [ + { name: "bundle_id", in: "path", type: "integer", required: true, desc: "Album ID" }, + { name: "timeframe", type: "string", required: false, desc: "period, year_to_date or all_time (default)" }, + { name: "as_of", type: "date", required: false, desc: "The deadline the window ends on" }, + { name: "page", type: "integer", required: false, desc: "Page of items" }, + { name: "per_page", type: "integer", required: false, desc: "Items per page (default 10, max 200)" } + ], [ + { code: "200", cls: "response-2xx", desc: "As for a Project. Each tracker is worked out on the Album as a whole, then the formula, so an Album percentage is the Album's numerator ÷ the Album's denominator" }, + { code: "403", cls: "response-4xx", desc: "Can't see the Album" }, + { code: "404", cls: "response-4xx", desc: "The tracker isn't on any of the Album's Projects" }, + { code: "422", cls: "response-4xx", desc: "Unknown timeframe or bad date" } + ])} ${endpointCard("DELETE", "/formula_trackers/{id}/projects/{project_id}", "Remove a Formula Tracker from a Project", true, [], [ { code: "204", cls: "response-2xx", desc: "Removed" }, { code: "404", cls: "response-4xx", desc: "Not on the Project" } @@ -3996,14 +4323,19 @@ function buildDocsPage() { { code: "403", cls: "response-4xx", desc: "You may not see this event" } ])} ${endpointCard("POST", "/events/{id}/guests", "Add guests to an event", true, [ - { name: "contact_ids", type: "array", required: true, desc: "Contacts in the event's project" }, + { name: "contact_ids", type: "array", required: false, desc: "Contacts in the event's project. Leave out to choose them with filter_data" }, + { name: "filter_data", type: "object", required: false, desc: "Instead of contact_ids: everyone matching the Manage Contacts filters, e.g. {\"beneficiary_state_ids\": [\"1\"]}" }, + { name: "excluded_ids", type: "integer[]", required: false, desc: "With filter_data: Contacts matching the filters to leave out" }, + { name: "project_id", type: "integer", required: false, desc: "With filter_data: shortcut for the Contacts in this Project" }, { name: "guest_status_id", type: "integer", required: false, desc: "One of the Event Format's Guest Statuses; its requirements are checked" }, - { name: "event_role_id", type: "integer", required: false, desc: "One of the Event Format's Event Roles for guests" }, - { name: "apply_to", type: "string", required: false, desc: "this_event (default) or this_and_upcoming_events" } - ], [ - { code: "201", cls: "response-2xx", desc: "event_id and guests_count" }, - { code: "422", cls: "response-4xx", desc: "Every problem: Contacts outside the project, an unmet requirement, a full event..." } - ])} + { name: "event_role_id", type: "integer", required: false, desc: "One of the Event Format's Event Roles for guests (contact_ids only)" }, + { name: "apply_to", type: "string", required: false, desc: "this_event (default) or this_and_upcoming_events (contact_ids only)" } + ], [ + { code: "200", cls: "response-2xx", desc: "filter_data, up to 50 Contacts added straight away: id, status, changed_count, skip_counts, summary, event_id and guests_count" }, + { code: "201", cls: "response-2xx", desc: "contact_ids: event_id and guests_count" }, + { code: "202", cls: "response-2xx", desc: "filter_data, more than 50 Contacts: added in the background. Poll GET /beneficiaries/bulk_actions/{id} with the id" }, + { code: "422", cls: "response-4xx", desc: "Every problem: Contacts outside the project, an unmet requirement, a full event... (contact_ids), or a Guest Status not on the Event Format" } + ], "With contact_ids all the Contacts are added or none are. With filter_data (Add to › An event for the Contacts selected on Manage Contacts) each Contact is added in turn, and those that can't be are skipped and counted in skip_counts: headline_only, not_in_project, event_full, requirements_not_met. Contacts already on the event keep their Guest Status.")} ${endpointCard("PATCH", "/events/{id}/guests/{contact_id}", "Change a guest's Guest Status or Event Role", true, [ { name: "guest_status_id", type: "integer", required: false, desc: "New Guest Status; its requirements are checked" }, { name: "event_role_id", type: "integer | null", required: false, desc: "New Event Role, or null to clear it" } @@ -4230,6 +4562,24 @@ function buildDocsPage() { { code: "404", cls: "response-4xx", desc: "Not found, or belongs to an organisation you are not in" }, { code: "422", cls: "response-4xx", desc: "A setting is invalid, e.g. a length not in 5-minute steps" } ])} + ${endpointCard("POST", "/event_categories/{id}/projects", "Add an Event Format to a project", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "Event Format (Event Category) ID" }, + { name: "project_id", type: "integer", required: true, desc: "A project in the same organisation; adding one also turns events on for it" } + ], [ + { code: "201", cls: "response-2xx", desc: "Added — status: added" }, + { code: "200", cls: "response-2xx", desc: "It was already added — status: already_added" }, + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin of the owning organisation" }, + { code: "404", cls: "response-4xx", desc: "Event Format or project not found, or in an organisation you are not in" }, + { code: "422", cls: "response-4xx", desc: "The project isn't in the Event Format's organisation" } + ])} + ${endpointCard("DELETE", "/event_categories/{id}/projects/{project_id}", "Remove an Event Format from a project", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "Event Format (Event Category) ID" }, + { name: "project_id", in: "path", type: "integer", required: true, desc: "Project ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "Removed — status: removed. Events already using it keep it" }, + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin of the owning organisation" }, + { code: "404", cls: "response-4xx", desc: "Not found, or the Event Format isn't added to the project" } + ])} ${endpointCard("DELETE", "/event_categories/{id}", "Delete an Event Format", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Event Format (Event Category) ID" } ], [ @@ -4241,6 +4591,101 @@ function buildDocsPage() {
+ +
+
Events
+

Event Catalogues

+
+

An Event Catalogue is a public page listing an organisation's upcoming events that people can book onto, at its public_url, which can also be embedded on a website. It shows only events that haven't started, have a Signup Page and have their listing turned on, narrowed by its filters. Organisation Admins, Organisation Reporters and Project Managers can list and read catalogues; Organisation Admins and Project Managers can create and edit them.

+

Contacts can also see a catalogue on their Contacts' Portal. Each project decides who: every Contact enrolled in the project, or only the Contacts ticked. The project's Project Managers and the organisation's Admins can change it.

+
+
+ ${endpointCard("GET", "/event_catalogues", "List an organisation's Event Catalogues", 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 list by name — each with filters and public_url" }, + { code: "403", cls: "response-4xx", desc: "You can't see this organisation's catalogues" }, + { code: "404", cls: "response-4xx", desc: "Organisation not found, or you are not in it" } + ])} + ${endpointCard("GET", "/event_catalogues/{id}", "Get an Event Catalogue", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "Event Catalogue ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "The catalogue, with upcoming_events_count" }, + { code: "403", cls: "response-4xx", desc: "You can't see this organisation's catalogues" }, + { code: "404", cls: "response-4xx", desc: "Not found, or belongs to an organisation you are not in" } + ])} + ${endpointCard("POST", "/event_catalogues", "Create an Event Catalogue", true, [ + { name: "charity_id", type: "integer", required: true, desc: "The Organisation that will own it" }, + { name: "name", type: "string", required: true, desc: "e.g. Drop-ins" }, + { name: "filters", type: "object", required: false, desc: "project_ids, event_category_ids, user_ids, beneficiary_ids, event_types, date_from" } + ], [ + { code: "201", cls: "response-2xx", desc: "Created — returns the catalogue with its public_url" }, + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin or Project Manager" }, + { code: "422", cls: "response-4xx", desc: "errors lists every problem" } + ])} + ${endpointCard("PATCH", "/event_catalogues/{id}", "Edit an Event Catalogue", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "Event Catalogue ID" }, + { name: "name", type: "string", required: false, desc: "Give only what changes" }, + { name: "filters", type: "object", required: false, desc: "Replaces all its filters" } + ], [ + { code: "200", cls: "response-2xx", desc: "Updated — the public_url stays the same" }, + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin or Project Manager" }, + { code: "404", cls: "response-4xx", desc: "Not found, or belongs to an organisation you are not in" } + ])} + ${endpointCard("GET", "/event_catalogues/{id}/projects/{project_id}/access", "Get who can see an Event Catalogue in a project", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "Event Catalogue ID" }, + { name: "project_id", in: "path", type: "integer", required: true, desc: "Project ID" } + ], [ + { code: "200", cls: "response-2xx", desc: "mode (every_enrolled or specific) and the ticked contact_ids" }, + { code: "404", cls: "response-4xx", desc: "Not found, or the catalogue doesn't show this project's events" } + ])} + ${endpointCard("PATCH", "/event_catalogues/{id}/projects/{project_id}/access", "Change who can see an Event Catalogue in a project", true, [ + { name: "id", in: "path", type: "integer", required: true, desc: "Event Catalogue ID" }, + { name: "project_id", in: "path", type: "integer", required: true, desc: "Project ID" }, + { name: "mode", type: "string", required: false, desc: "every_enrolled (drops the ticks) or specific" }, + { name: "add_contact_ids", type: "array", required: false, desc: "Contacts in the project to tick, under specific" }, + { name: "remove_contact_ids", type: "array", required: false, desc: "Contacts to untick" } + ], [ + { code: "200", cls: "response-2xx", desc: "Who can now see it" }, + { code: "403", cls: "response-4xx", desc: "Not a Project Manager of the project or an Organisation Admin" }, + { code: "422", cls: "response-4xx", desc: "e.g. a Contact who isn't in the project, or ticks under every_enrolled" } + ])} +
+
+ + +
+
Events
+

Contacts' Portal

+
+

Each Contact has their own link to the Contacts' Portal, where they see the Event Catalogues their project lets them see and book onto events. These endpoints do what a project's Portal Links page does: list the Contacts who can see at least one Event Catalogue, and send them their link by email or SMS. The link itself is never returned, because it signs the Contact in to their Portal.

+

To give a Contact Portal access, first let them see an Event Catalogue (PATCH /event_catalogues/{id}/projects/{project_id}/access), then send them their link. Project Managers, Reporters and Organisation Admins and Reporters can list; only Project Managers and Organisation Admins can send.

+
+
+ ${endpointCard("GET", "/projects/{project_id}/portal_links", "List Contacts' Portal links in a project", true, [ + { name: "project_id", in: "path", type: "integer", required: true, desc: "Project ID" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Records per page" } + ], [ + { code: "200", cls: "response-2xx", desc: "Each Contact's link_status (active, deactivated or none), last_sent_at, last_sent_channel, can_email and can_sms" }, + { code: "403", cls: "response-4xx", desc: "Not a Project Manager or Reporter of the project, or an Organisation Admin or Reporter" }, + { code: "404", cls: "response-4xx", desc: "Not found" } + ])} + ${endpointCard("POST", "/projects/{project_id}/portal_links/send", "Send Contacts their Portal link", true, [ + { name: "project_id", in: "path", type: "integer", required: true, desc: "Project ID" }, + { name: "contact_ids", type: "array", required: true, desc: "Contacts in the project who can see an Event Catalogue" }, + { name: "channel", type: "string", required: true, desc: "email or sms" } + ], [ + { code: "200", cls: "response-2xx", desc: "sent (how many) and skipped (names of Contacts with no email address or mobile number)" }, + { code: "403", cls: "response-4xx", desc: "Not a Project Manager of the project or an Organisation Admin" }, + { code: "422", cls: "response-4xx", desc: "e.g. a Contact who can't see any Event Catalogue yet, or none can receive it" } + ])} +
+
+
Site content
@@ -4359,7 +4804,8 @@ function buildDocsPage() {
Integrations

Webhooks

-

Instead of polling, an Organisation's admins can register webhook endpoints: HTTPS URLs that Makerble sends a signed JSON POST to when records change. Only the Organisation's admins can manage them, and only once an admin has ticked Turn on Webhooks in the Organisation's Settings (Preferences) page; until then these endpoints answer 403.

+

Instead of polling, an Organisation's admins can register webhook endpoints: HTTPS URLs that Makerble sends a signed JSON POST to when records change. Only the Organisation's admins can manage them, and only once an admin has ticked Turn on Webhooks in the Organisation's Settings (Preferences) page; until then these endpoints answer 403. A colleague who is not an Organisation Admin also gets 403, with an error message that can be shown to them as it is.

+

Automation platforms: a connector such as the Power Automate one creates an endpoint for each flow with a Makerble trigger, usually for one event, and deletes it when the flow is deleted. The create response's Location header is the endpoint's full address to send that DELETE to, and deleting is idempotent (204 again if it has already gone). Such endpoints have a source of power_automate, zapier or dynamics, set by Makerble from the connected app (an OAuth connection, which may list, get, create and delete webhook endpoints in the one Organisation it was connected to), and their own limit of 100 per Organisation, separate from the 10 added by hand (source: manual). Power Automate flows can't check the signature themselves; they rely on the callback address being secret, which Microsoft generates for each flow.

Events: contact.created, contact.updated (with changed_fields), story.created (about 30 seconds after the Story is posted, so survey answers are included; drafts are not sent), story.updated (including a draft being published), project.created, project.updated (update events are sent about 10 seconds after the change, so several saves of one change arrive as one event), import.completed (once per finished spreadsheet import; its rows send no events of their own) and webhook.test. The data of a Contact, Story or Project event is the same JSON as GET /beneficiaries/{id}, GET /stories/{id} or GET /projects/{id}, as the record is when the request is sent. A changed dropdown answer on a Contact sends contact.updated with custom_fields.<dropdown title> in changed_fields.

Removal and membership events: contact.deleted (id, deleted_at; no personal data), contact.merged (kept_contact_id, merged_contact_ids, merged_at; no contact.deleted is sent for a merged Contact), contact.restored (the full Contact, when a deleted Contact is restored or a merge undone), story.deleted (id, project_id, contact_ids, deleted_at), project.deleted (id, name, deleted_at), and project.contact_added / project.contact_removed (project_id, project_name, contact_id, contact_state). Their data is recorded when the event happens. Webhooks created before these events existed receive them only once an admin ticks them. Once an endpoint has 100 events waiting, further ones are spaced out at 5 a second, so a bulk action on thousands of records may take some minutes to arrive in full.

Envelope: { "id": "evt_…", "event": "contact.updated", "occurred_at": "2026-10-04T09:15:00Z", "charity_id": 123, "changed_fields": ["name"], "data": { … } }. Headers: X-Makerble-Event, X-Makerble-Delivery (the id), User-Agent: Makerble-Webhooks/1 and X-Makerble-Signature: t=<unix time>,v1=<signature>.

@@ -4378,8 +4824,8 @@ function buildDocsPage() { { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 incremental sync" } ], [ { code: "200", cls: "response-2xx", desc: "Paginated list of endpoints, without secrets" }, - { code: "403", cls: "response-4xx", desc: "Webhooks are not turned on for this Organisation" }, - { code: "404", cls: "response-4xx", desc: "Not an admin of this Organisation" } + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin, or Webhooks are not turned on for this Organisation" }, + { code: "404", cls: "response-4xx", desc: "Not a member of this Organisation" } ])} ${endpointCard("POST", "/webhook_endpoints", "Register a webhook endpoint", true, [ { name: "webhook_endpoint[charity_id]", in: "body", type: "integer", required: true, desc: "The Organisation ID" }, @@ -4387,14 +4833,16 @@ function buildDocsPage() { { name: "webhook_endpoint[description]", in: "body", type: "string", required: false, desc: "What it is for" }, { name: "webhook_endpoint[event_types]", in: "body", type: "array", required: false, desc: "Events to send (default: all)" } ], [ - { code: "201", cls: "response-2xx", desc: "Created — includes the secret, shown only this once" }, - { code: "422", cls: "response-4xx", desc: "Invalid URL or events, or the Organisation already has 10 endpoints" } + { code: "201", cls: "response-2xx", desc: "Created — includes the secret, shown only this once. The Location header is the endpoint's full address" }, + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin, or Webhooks are not turned on for this Organisation" }, + { code: "422", cls: "response-4xx", desc: "Invalid URL or events, or the Organisation already has 10 endpoints (100 from automation platforms)" } ])} ${endpointCard("GET", "/webhook_endpoints/{id}", "Get a webhook endpoint", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Endpoint ID" } ], [ { code: "200", cls: "response-2xx", desc: "The endpoint, without its secret" }, - { code: "404", cls: "response-4xx", desc: "Not found, or not an admin of its Organisation" } + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin of its Organisation" }, + { code: "404", cls: "response-4xx", desc: "Not found, or not a member of its Organisation" } ])} ${endpointCard("PATCH", "/webhook_endpoints/{id}", "Change, pause or resume a webhook endpoint", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Endpoint ID" }, @@ -4407,7 +4855,8 @@ function buildDocsPage() { ${endpointCard("DELETE", "/webhook_endpoints/{id}", "Delete a webhook endpoint", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Endpoint ID" } ], [ - { code: "204", cls: "response-2xx", desc: "Deleted, with its delivery log" } + { code: "204", cls: "response-2xx", desc: "Deleted, with its delivery log, or already gone" }, + { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin of its Organisation" } ])} ${endpointCard("POST", "/webhook_endpoints/{id}/rotate_secret", "Rotate a webhook endpoint's secret", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Endpoint ID" } @@ -5240,6 +5689,20 @@ function buildDocsPage() {
+ +
+
Service
+

Health

+
+

Checks that the service and its database are answering, and reports which build is running. No sign-in is needed. After a release, commit changes to the new build's commit and uptime_seconds starts again from a small number, so you can tell when the new version is live.

+
+
+ ${endpointCard("GET", "/health", "Check the service is up and which build is running", false, [], [ + { code: "200", cls: "response-2xx", desc: "status, database (true/false), uptime_seconds, commit (git SHA or null), built_at (ISO 8601 UTC or null) and environment" } + ])} +
+
+