# Files

Files represent the codebase files comprising the SBOM part. Each file has a name, relative path, and hashes.

## View All Files

 - [GET /sbom/v1/orgs/{orgId}/files](https://sbominsightsapi.redocly.app/openapi3/files/files_indexfiles.md): Retrieve all the files

Files can be filtered using any 'one' of the following parameters. 
|parameter | description|
|--- | ---|
| ids | comma separated list of file ids |
| partId | get all the files for a specific part id |
| trailId | provide job id to list all the records that was created/updated during the job run  |

## Create File

 - [POST /sbom/v1/orgs/{orgId}/files](https://sbominsightsapi.redocly.app/openapi3/files/files_createfile.md): Creates a file

## Delete File

 - [DELETE /sbom/v1/orgs/{orgId}/files/{fileId}](https://sbominsightsapi.redocly.app/openapi3/files/files_deletefile.md): Delete a file

## View Information for a File

 - [GET /sbom/v1/orgs/{orgId}/files/{fileId}](https://sbominsightsapi.redocly.app/openapi3/files/files_showfile.md): Retrieve detailed information for the requested file

## Update File

 - [PUT /sbom/v1/orgs/{orgId}/files/{fileId}](https://sbominsightsapi.redocly.app/openapi3/files/files_updatefile.md): Update file information

