Archives a project. Archive is IRREVOCABLE. The operation runs asynchronously: it deletes codebase files and Lucene indexes from the scanner filesystem, then atomically changes the project status to Archived. All inventory, evidence, scan history, reports, and exports are preserved in the database. Archived projects become fully read-only all modification APIs are blocked except DELETE. Only Project Administrators can archive projects. Pre-conditions: no active scans, copies, imports, exports or branching jobs on the project or its children.
Security
bearerAuth
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/projects/{projectId}/archive
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/projects/{projectId}/archive
curl -i -X POST \
'https://codeinsightapi.redocly.app/_mock/swagger/projects/1/archive?archiveChildProjects=false&comments=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'