Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "<code>{checklist_id, beneficiary_id, removed_at, removed_by_user_id}</code>. The Contact's progress is kept: adding the Checklist again restores it" },
{ code: "200", cls: "response-2xx", desc: "<code>{checklist_id, beneficiary_id, removed_at, removed_by_user_id}</code>. 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" }
])}
Expand Down
Loading