{ "opencollection": "1.0.0", "info": { "name": "CockroachDB Cloud APIKeys Folders API", "version": "2024-09-16" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Folders", "type": "folder" }, "items": [ { "info": { "name": "List folders", "type": "http" }, "http": { "method": "GET", "url": "https://cockroachlabs.cloud/api/v1/folders", "params": [ { "name": "path", "value": "", "type": "query", "description": "Filter folders by path prefix." }, { "name": "pagination.page", "value": "", "type": "query", "description": "Page number for paginated results, starting from 1." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "Maximum number of results to return per page." }, { "name": "pagination.as_of_time", "value": "", "type": "query", "description": "RFC3339 timestamp to return results as they were at a specific point in time (time-travel query)." }, { "name": "pagination.sort_order", "value": "", "type": "query", "description": "Sort direction for paginated results. Accepted values are ASC and DESC." } ] }, "docs": "Returns a list of folders in the organization, optionally filtered by path. Supports pagination." }, { "info": { "name": "Create a folder", "type": "http" }, "http": { "method": "POST", "url": "https://cockroachlabs.cloud/api/v1/folders", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new folder for organizing clusters and resources within the organization. Requires FOLDER_ADMIN role." }, { "info": { "name": "Get a folder", "type": "http" }, "http": { "method": "GET", "url": "https://cockroachlabs.cloud/api/v1/folders/:folder_id", "params": [ { "name": "folder_id", "value": "", "type": "path", "description": "Unique identifier of the folder." } ] }, "docs": "Retrieves details of a specific folder by its ID." }, { "info": { "name": "Update a folder", "type": "http" }, "http": { "method": "PATCH", "url": "https://cockroachlabs.cloud/api/v1/folders/:folder_id", "params": [ { "name": "folder_id", "value": "", "type": "path", "description": "Unique identifier of the folder." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the name or parent of an existing folder. Requires FOLDER_ADMIN or FOLDER_MOVER role." }, { "info": { "name": "Delete a folder", "type": "http" }, "http": { "method": "DELETE", "url": "https://cockroachlabs.cloud/api/v1/folders/:folder_id", "params": [ { "name": "folder_id", "value": "", "type": "path", "description": "Unique identifier of the folder." } ] }, "docs": "Permanently deletes a folder by ID. Requires FOLDER_ADMIN role. The folder must be empty before deletion." }, { "info": { "name": "List folder contents", "type": "http" }, "http": { "method": "GET", "url": "https://cockroachlabs.cloud/api/v1/folders/:folder_id/contents", "params": [ { "name": "folder_id", "value": "", "type": "path", "description": "Unique identifier of the folder." }, { "name": "pagination.page", "value": "", "type": "query", "description": "Page number for paginated results, starting from 1." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "Maximum number of results to return per page." }, { "name": "pagination.as_of_time", "value": "", "type": "query", "description": "RFC3339 timestamp to return results as they were at a specific point in time (time-travel query)." }, { "name": "pagination.sort_order", "value": "", "type": "query", "description": "Sort direction for paginated results. Accepted values are ASC and DESC." } ] }, "docs": "Returns the contents of a specific folder, including clusters and sub-folders. Supports pagination." } ] } ], "bundled": true }