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: 4 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,10 @@ paths:
**Already closed or open.** `close` changes only the listed Projects that are open, and
`reopen` only those that are closed. The others are left as they are.

**Progress Boards.** Closing a Project also archives the Progress Boards generated for it
("<Survey> on <Project>"), and reopening it reopens those boards. A board someone archived by
hand stays archived when the Project is reopened.

**Signup Pages.** Closing a Project that an active Signup Page uses would break that Signup
Page, so `close` needs `signup_pages`:
- `deactivate`: deactivate those Signup Pages, then close the Project. A Project whose Signup
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ function buildDocsPage() {
{ code: "403", cls: "response-4xx", desc: "You may not close or reopen one of the listed Projects; nothing changes" },
{ code: "404", cls: "response-4xx", desc: "One of the listed Projects doesn't exist" },
{ code: "422", cls: "response-4xx", desc: "Unknown <code>status_action</code>, missing <code>signup_pages</code> for <code>close</code>, or no Projects (or more than 200)" }
], "What <b>Close projects</b> and <b>Reopen projects</b> do for the projects ticked in the Rows view of My Projects. Organisation Admins and Project Managers (Project Editors) can use it. <code>close</code> changes only the open Projects listed and <code>reopen</code> only the closed ones; each is closed or reopened as from its own settings menu, so its team is told. Check the result with <code>GET /projects/{id}</code> (<code>is_closed</code>).")}
], "What <b>Close projects</b> and <b>Reopen projects</b> do for the projects ticked in the Rows view of My Projects. Organisation Admins and Project Managers (Project Editors) can use it. <code>close</code> changes only the open Projects listed and <code>reopen</code> only the closed ones; each is closed or reopened as from its own settings menu, so its team is told. Closing also archives the Progress Boards generated for the Project, and reopening reopens them (a board archived by hand stays archived). Check the result with <code>GET /projects/{id}</code> (<code>is_closed</code>).")}
${endpointCard("POST", "/projects/bulk_deletion", "Delete many closed Projects at once", true, [
{ name: "project_ids", type: "integer[]", required: true, desc: "The Projects to delete, at most 200. Only the closed ones are deleted" }
], [
Expand Down
Loading