From 2a3f1d08fbc60ea3c6f1346931c633f74609caed Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 18:35:52 +0000 Subject: [PATCH] Say an Organisation Admin can add back a removed automatic Checklist CP-8822 QA amend: adding a Checklist to a Contact now also offers an Organisation Admin one that was removed while one of the Contact's Projects adds it automatically. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xoQYZuQ87yyCQ1EpvA --- openapi.yaml | 4 +++- server.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 76bf8ea..adeaf0c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -9106,7 +9106,9 @@ paths: It is added through a Project, the one whose records count for actions set to "Only count records in this project": the only Project that allows it, or `project_id` when more than one does (required then). Adding one that was removed from the Contact earlier restores the - actions they had done. + actions they had done. An Organisation Admin may also add back a Checklist that was removed + from the Contact while one of their Projects adds it automatically; it is added through that + Project. operationId: addContactChecklist security: [{tokenAuth: []}] parameters: diff --git a/server.js b/server.js index 916806a..712c522 100644 --- a/server.js +++ b/server.js @@ -2835,7 +2835,7 @@ function buildDocsPage() { { name: "beneficiary_id", in: "path", type: "integer", required: true, desc: "Contact ID" }, { name: "checklist_id", in: "path", type: "integer", required: true, desc: "Checklist ID" } ], [ - { code: "200", cls: "response-2xx", desc: "{checklist_id, beneficiary_id, removed_at, removed_by_user_id}. The Contact's progress is kept: adding the Checklist again restores it" }, + { code: "200", cls: "response-2xx", desc: "{checklist_id, beneficiary_id, removed_at, removed_by_user_id}. The Contact's progress is kept: adding the Checklist again restores it. An Organisation Admin can add back one a Project adds automatically" }, { code: "403", cls: "response-4xx", desc: "Only an Organisation Admin, or a colleague who can add this Checklist to the Contact, can remove it" }, { code: "404", cls: "response-4xx", desc: "A Contact the user can't see, or a Checklist the Contact doesn't have" } ])}