+ Workspaces & Portfolios
+ Impact Celebrations
+
+
Impact Celebrations announce good news for a Workspace (Project) or Portfolio (Album) automatically. Its editors switch them on and tick the metrics worth celebrating, on the Impact Celebrations tab of its Preferences. Every hour Makerble checks: when a ticked metric reaches its target (a dated target, or the one-off target when there are no dated ones), or when at least 80% of the Contacts judged on a ticked Choice tracker have improved between their first and latest answers, its colleagues see a popup announcement for 7 days.
+
Each target, and each Choice tracker, celebrates once. Anything already reached when first checked (just ticked, or a target just set or lowered) is recorded without a popup, with recorded_silently: true. GET lists every metric that can celebrate, each with a key such as Change-12 that PATCH takes in metric_keys.
+
Only whoever may edit the Workspace's or Portfolio's targets can read or change its Impact Celebrations; anyone else gets 403. A Workspace or Portfolio that doesn't exist answers 404.
+
+
+ ${endpointCard("GET", "/projects/{project_id}/celebration_settings", "Get a Workspace's Impact Celebrations settings", true, [
+ { name: "project_id", in: "path", type: "integer", required: true, desc: "The Workspace's (Project's) ID" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "enabled, and metrics: every metric that can celebrate, with key, kind, celebrates_when, ticked and can_tick" },
+ { code: "403", cls: "response-4xx", desc: "Can't edit this Workspace's targets" },
+ { code: "404", cls: "response-4xx", desc: "No such Workspace" }
+ ])}
+ ${endpointCard("PATCH", "/projects/{project_id}/celebration_settings", "Switch a Workspace's Impact Celebrations on or off, and choose the metrics", true, [
+ { name: "project_id", in: "path", type: "integer", required: true, desc: "The Workspace's (Project's) ID" },
+ { name: "enabled", in: "body", type: "boolean", required: false, desc: "Whether Impact Celebrations are on" },
+ { name: "metric_keys", in: "body", type: "string[]", required: false, desc: "Keys of the metrics to tick; [] unticks every one" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "The settings after the change" },
+ { code: "403", cls: "response-4xx", desc: "Can't edit this Workspace's targets" },
+ { code: "404", cls: "response-4xx", desc: "No such Workspace" },
+ { code: "422", cls: "response-4xx", desc: "A metric that can't celebrate there" }
+ ])}
+ ${endpointCard("GET", "/projects/{project_id}/celebrations", "List a Workspace's Impact Celebrations so far", true, [
+ { name: "project_id", in: "path", type: "integer", required: true, desc: "The Workspace's (Project's) ID" },
+ { name: "page", type: "integer", required: false, desc: "Page number (default 1)" },
+ { name: "per_page", type: "integer", required: false, desc: "Results per page (default 10, max 200)" },
+ { name: "last_synced_datetime", type: "string", required: false, desc: "Only those changed after this datetime" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "Newest first: kind, metric, target, reached_on, days_early, recorded_silently and the announcement shown" },
+ { code: "403", cls: "response-4xx", desc: "Can't edit this Workspace's targets" },
+ { code: "404", cls: "response-4xx", desc: "No such Workspace" }
+ ])}
+ ${endpointCard("GET", "/albums/{album_id}/celebration_settings", "Get a Portfolio's Impact Celebrations settings", true, [
+ { name: "album_id", in: "path", type: "integer", required: true, desc: "The Portfolio's (Album's) ID" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "As for a Workspace; its popups go to colleagues on its open Workspaces and its editors" },
+ { code: "403", cls: "response-4xx", desc: "Can't edit this Portfolio's targets" },
+ { code: "404", cls: "response-4xx", desc: "No such Portfolio" }
+ ])}
+ ${endpointCard("PATCH", "/albums/{album_id}/celebration_settings", "Switch a Portfolio's Impact Celebrations on or off, and choose the metrics", true, [
+ { name: "album_id", in: "path", type: "integer", required: true, desc: "The Portfolio's (Album's) ID" },
+ { name: "enabled", in: "body", type: "boolean", required: false, desc: "Whether Impact Celebrations are on" },
+ { name: "metric_keys", in: "body", type: "string[]", required: false, desc: "Keys of the metrics to tick; [] unticks every one" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "The settings after the change" },
+ { code: "403", cls: "response-4xx", desc: "Can't edit this Portfolio's targets" },
+ { code: "404", cls: "response-4xx", desc: "No such Portfolio" },
+ { code: "422", cls: "response-4xx", desc: "A metric that can't celebrate there" }
+ ])}
+ ${endpointCard("GET", "/albums/{album_id}/celebrations", "List a Portfolio's Impact Celebrations so far", true, [
+ { name: "album_id", in: "path", type: "integer", required: true, desc: "The Portfolio's (Album's) ID" },
+ { name: "page", type: "integer", required: false, desc: "Page number (default 1)" },
+ { name: "per_page", type: "integer", required: false, desc: "Results per page (default 10, max 200)" },
+ { name: "last_synced_datetime", type: "string", required: false, desc: "Only those changed after this datetime" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "As for a Workspace" },
+ { code: "403", cls: "response-4xx", desc: "Can't edit this Portfolio's targets" },
+ { code: "404", cls: "response-4xx", desc: "No such Portfolio" }
+ ])}
+ ${endpointCard("POST", "/celebrations/{id}/end", "End an Impact Celebration's popup now", true, [
+ { name: "id", in: "path", type: "integer", required: true, desc: "The celebration's ID" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "The celebration, its announcement now ended" },
+ { code: "403", cls: "response-4xx", desc: "Can't edit the Workspace's or Portfolio's targets" },
+ { code: "404", cls: "response-4xx", desc: "No such celebration" },
+ { code: "422", cls: "response-4xx", desc: "Its popup isn't showing" }
+ ])}
+
+
+