{ "opencollection": "1.0.0", "info": { "name": "InsightAppSec Accounts Files API", "version": "v1" }, "items": [ { "info": { "name": "Files", "type": "folder" }, "items": [ { "info": { "name": "Get Files", "type": "http" }, "http": { "method": "GET", "url": "https://[region].api.insight.rapid7.com/ias/v1/apps/:app-id/files", "params": [ { "name": "app-id", "value": "", "type": "path" }, { "name": "index", "value": "", "type": "query" }, { "name": "size", "value": "", "type": "query" }, { "name": "sort", "value": "", "type": "query" }, { "name": "page-token", "value": "", "type": "query" } ] }, "docs": "Get a page of Files, based on supplied pagination parameters.

The default sort for Files is \"name\" (ascending); for a full list of sortable properties, refer to the Search Catalog detailed in the Search API.

" }, { "info": { "name": "Create File", "type": "http" }, "http": { "method": "POST", "url": "https://[region].api.insight.rapid7.com/ias/v1/apps/:app-id/files", "params": [ { "name": "app-id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a new File." }, { "info": { "name": "Get File", "type": "http" }, "http": { "method": "GET", "url": "https://[region].api.insight.rapid7.com/ias/v1/apps/:app-id/files/:file-id", "params": [ { "name": "app-id", "value": "", "type": "path" }, { "name": "file-id", "value": "", "type": "path" } ] }, "docs": "Get a File
NOTE: This API allows for the retrieval of both File Information and File Contents depending on which Mime-Type the client advertises acceptance of in the Accept header passed in the call.
When retrieving only the File Information the client should supply an Accept header value that indicates acceptance of the application/json mime type only.
To download the File Contents the client is required to supply Accept h" }, { "info": { "name": "Upload File Content", "type": "http" }, "http": { "method": "POST", "url": "https://[region].api.insight.rapid7.com/ias/v1/apps/:app-id/files/:file-id", "params": [ { "name": "app-id", "value": "", "type": "path" }, { "name": "file-id", "value": "", "type": "path" } ] }, "docs": "Upload a File's Content. NOTE: this requires the use of the Content-Type: application/octet-stream header." }, { "info": { "name": "Update File", "type": "http" }, "http": { "method": "PUT", "url": "https://[region].api.insight.rapid7.com/ias/v1/apps/:app-id/files/:file-id", "params": [ { "name": "app-id", "value": "", "type": "path" }, { "name": "file-id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update an existing File." }, { "info": { "name": "Delete File", "type": "http" }, "http": { "method": "DELETE", "url": "https://[region].api.insight.rapid7.com/ias/v1/apps/:app-id/files/:file-id", "params": [ { "name": "app-id", "value": "", "type": "path" }, { "name": "file-id", "value": "", "type": "path" } ] }, "docs": "Delete an existing File." } ] } ], "bundled": true }