From b89f2f88a04c18b7052ff75e2f3a56750c5fc249 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 08:52:25 +0000 Subject: [PATCH] Document an announcement's button_deep_link CP-9235, PR 2 of 2 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xpSo2UobPNHBqkyNXT --- openapi.yaml | 15 +++++++++++++++ server.js | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 6409140..4c106bf 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18223,6 +18223,14 @@ components: type: string maxLength: 24 description: Defaults to "Got it". + button_deep_link: + type: string + nullable: true + description: | + Makerble's own only. Where the button goes: the `name` of a deep link from List Deep Links, such as + `checklists`. The button then opens that page in the person's own organisation and closes the popup; give it a + label that says where it goes ("Explore Checklists"). For someone who can't open the page, it only closes the + popup. A live `feature_tour_id` takes priority. Send null to clear it. audience: type: string enum: [everyone, colleagues, administrators] @@ -18470,6 +18478,13 @@ components: learn_more_click_count: type: integer description: People who clicked its "Learn more" link. + button_deep_link: + 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 diff --git a/server.js b/server.js index 69c7cd3..f8de339 100644 --- a/server.js +++ b/server.js @@ -4548,7 +4548,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, an image without alt text, an intro_key whose Intro has no animation, a storyboard that breaks the rules, a file that isn't a PNG, JPG, GIF or WebP image or is over 5 MB, 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, image and image_alt (for image: a PNG, JPG, GIF or WebP file of up to 5 MB, sent as a file in a multipart/form-data request or in JSON as {filename, data} with the data in base64, and its alt text, up to 250 characters, both required), intro_key (for intro_animation), storyboard (for storyboard), 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.")} + ], "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, image and image_alt (for image: a PNG, JPG, GIF or WebP file of up to 5 MB, sent as a file in a multipart/form-data request or in JSON as {filename, data} with the data in base64, and its alt text, up to 250 characters, both required), intro_key (for intro_animation), storyboard (for storyboard), 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\"), button_deep_link (Makerble's own only: a deep link name from List Deep Links; the button then opens that page in the person's own organisation and closes the popup), 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" } ], [