File every automated case that has no suite, in every project, by its specRef
const url = 'https://beta-api.plune.ai/v1/admin/file-unfiled';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://beta-api.plune.ai/v1/admin/file-unfiled \ --header 'Authorization: Bearer <token>'A deployment-level operation like the purge, run once after the wave-1 deploy of B-7 (AC-17). Walks every project — each in its own transaction — and files every automated case without a suite through the same seam a freshly created case goes through: folders and suites are found or created, the case gets its suiteId, and the derived nodes and the case are audited under the caller. A case whose path meets a node of the same name but the other kind stays in the root and is reported under skipped with the reason (AC-14). Idempotent: a second run reports filed: 0 everywhere and the same skipped. Restricted to the owner of the deployment; everyone else gets 404 — the route does not exist for them.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”What was filed and what was skipped, per project
What the sweep filed and what it skipped, per project.
object
object
Cases that got a suiteId in this run.
Cases left in the root because their path meets a node of the other kind (AC-14).
object
Example
{ "projects": [ { "projectId": "userA::default", "filed": 2027, "skipped": [ { "caseId": "6f1c2b3a-0000-4000-8000-0000000000c3", "reason": "filing skipped: 'e2e' exists as a suite, expected a folder" } ] }, { "projectId": "userB::default", "filed": 0, "skipped": [] } ]}No / invalid token or session
The caller does not own the application
object
Example generated
{ "error": "example"}Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over