Soft-delete (archive) a multi-project cycle — detaches member tasks and frees the one-active / sequence slot (PT-938)
DELETE/api/cycle-sets/:id/cycles/:cycleId
Soft-delete (archive) a multi-project cycle — detaches member tasks and frees the one-active / sequence slot (PT-938). Requires tasks.delete.any plus the set's access envelope. This is also what makes migration 080's project-delete guard actionable: that guard refuses to hard-delete a project whose set still owns a PLANNED or ACTIVE cycle, and this route is how that cycle is cleared.
Request
Responses
- 200
- 401
- 403
- 404
Successful response
Unauthorized — authentication credentials are missing or invalid
Forbidden — the project set is inaccessible or unknown, the caller lacks the required permission or an ACTIVE INTERNAL membership, or the x-act-as-org selector named a non-member org. All collapse to a byte-identical 403.
Cycle not found, already archived, or not in this project set — and a MALFORMED cycleId returns this same 404 whether or not the set is reachable, so the status is not an accessibility oracle.