From b98d228b81e08c5d2942690fc1b92953d6091c58 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 15:48:43 +0000 Subject: [PATCH] Document an announcement's feature_tour_id (CP-9155) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xqT6R8KYWmPSkdTCtw --- openapi.yaml | 12 ++++++++++++ server.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 0502b59..c45ad50 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -17156,6 +17156,13 @@ components: description: >- For an Organisation's, Workspace's or Team's announcement: one of that Organisation's Training materials to link to. Send null to clear it. + feature_tour_id: + type: integer + nullable: true + description: >- + For one of Makerble's own announcements: a feature tour (from GET /feature_tours). While the tour is live, + the popup's button is "Take the tour", which starts it on its first page instead of showing `button_label`. + Send null to clear it. title: type: string maxLength: 90 @@ -17321,6 +17328,11 @@ components: 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 title: type: string body: diff --git a/server.js b/server.js index 0ea3023..34eb72b 100644 --- a/server.js +++ b/server.js @@ -4385,7 +4385,7 @@ function buildDocsPage() { { code: "403", cls: "response-4xx", desc: "The user doesn't hold the role on that place, or (with no place) doesn't have System Access" }, { code: "404", cls: "response-4xx", desc: "The Organisation, Workspace or Team doesn't exist" }, { code: "422", cls: "response-4xx", desc: "Validation failed, e.g. no headline, a headline over 90 characters, a Vimeo visual with a YouTube link, or the name change animation for a place" } - ], "Body: scope_type and scope_id (whose announcement; leave out for one of Makerble's own), title (headline, up to 90), body (message, up to 280), visual_type, name_changes: [{old_name, new_name}] (1 to 3), vimeo_url, learn_more_url (a Makerble User Guide page for Makerble's own; any https page for a place's), training_material_id (a place's announcement only: one of its Organisation's Training materials, linked for the colleagues it is shared with), button_label (default \"Got it\"), audience, roles, audience_rules and page_keys (Makerble's own only; see above), starts_on, ends_on, status.")} + ], "Body: scope_type and scope_id (whose announcement; leave out for one of Makerble's own), title (headline, up to 90), body (message, up to 280), visual_type, name_changes: [{old_name, new_name}] (1 to 3), vimeo_url, learn_more_url (a Makerble User Guide page for Makerble's own; any https page for a place's), training_material_id (a place's announcement only: one of its Organisation's Training materials, linked for the colleagues it is shared with), button_label (default \"Got it\"), feature_tour_id (Makerble's own only: a feature tour; while it is live the button says \"Take the tour\" and starts it), audience, roles, audience_rules and page_keys (Makerble's own only; see above), starts_on, ends_on, status.")} ${endpointCard("PATCH", "/announcements/{id}", "Update an Announcement", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Announcement ID" } ], [