Skip to content

Add Files and/or Folders to Inventory

Request

Add files and/or folders to inventory item and returns the response message

Security
bearerAuth
Path
inventoryIdinteger, (int64)required

ID of the Inventory

Example:1
Bodyapplication/jsonrequired

To Add files and folders to the inventory provide file and folder paths.

filePathsArray of strings

filePaths

folderPathsArray of strings

folderPaths

markAssociatedFilesAsReviewedboolean

markAssociatedFilesAsReviewed

Example:false
curl -i -X PUT \
  https://codeinsightapi.redocly.app/_mock/swagger/inventories/1/files \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "filePaths": [
      "string"
    ],
    "folderPaths": [
      "string"
    ],
    "markAssociatedFilesAsReviewed": false
  }'

Responses

OK

Bodyapplication/json
string
Response
"string"