{ "opencollection": "1.0.0", "info": { "name": "OneCLI Agent Setup Projects API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Projects", "type": "folder" }, "items": [ { "info": { "name": "List projects", "type": "http" }, "http": { "method": "GET", "url": "https://api.onecli.sh/v1/projects" }, "docs": "Returns all projects in the authenticated user's organization. Cloud only." }, { "info": { "name": "Create a project", "type": "http" }, "http": { "method": "POST", "url": "https://api.onecli.sh/v1/projects", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new project in the organization. Requires admin role." }, { "info": { "name": "Get a project", "type": "http" }, "http": { "method": "GET", "url": "https://api.onecli.sh/v1/projects/:projectId", "params": [ { "name": "projectId", "value": "", "type": "path" } ] }, "docs": "Returns a single project by ID." }, { "info": { "name": "Update a project", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.onecli.sh/v1/projects/:projectId", "params": [ { "name": "projectId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a project's name and slug. Requires admin role." }, { "info": { "name": "Delete a project", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.onecli.sh/v1/projects/:projectId", "params": [ { "name": "projectId", "value": "", "type": "path" } ] }, "docs": "Permanently deletes a project and all its data (agents, secrets, connections, rules, audit logs). Requires admin role. Cannot delete the last project in the organization.\n" } ] } ], "bundled": true }