# Dependencies Source Files

## Get source files inventory at project level

 - [GET /api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/inventory](https://api-docs.mend.io/platform/3.0/dependencies-source-files/getsourcefilesinventoryproject.md): Returns an inventory list of the source files associated with each library in a project. Supports filtering by library UUID using the search parameter. Example: ?search=libraryUuid==b366b0ef-b211-4c37-a47c-0077e4de709f

## Get Mend library suggestions for source files at project level

 - [POST /api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/matchSuggestions](https://api-docs.mend.io/platform/3.0/dependencies-source-files/getmatchsuggestionsproject.md): Returns Mend library suggestions for the specified source file UUIDs. Request body requires: sourceFileUuids (array), recommendedForAllFiles (boolean). Supports same search filters as searchForMatch: date, license, name, owner, version.

## Search for library matches for source files at project level

 - [GET /api/v3.0/projects/{projectUuid}/dependencies/sourceFiles/searchForMatch](https://api-docs.mend.io/platform/3.0/dependencies-source-files/searchformatchproject.md): Returns library match suggestions from Mend based on manual search criteria. Uses V3 MQL search format. Available search filters: date:between:date1,date2 (e.g., between:2019-05-01,2019-06-01), license:[like|regex]:value, name:[like|equals|regex]:value, owner:like:value, version:like:value. Example: ?search=name==openssl.

## Get source files inventory at application level

 - [GET /api/v3.0/applications/{applicationUuid}/dependencies/sourceFiles/inventory](https://api-docs.mend.io/platform/3.0/dependencies-source-files/getsourcefilesinventoryapplication.md): Returns a list of libraries together with the location of their source files. Supports filtering by library UUID using the search parameter. Example: ?search=libraryUuid==b366b0ef-b211-4c37-a47c-0077e4de709f

## Get Mend library suggestions for source files at application level

 - [POST /api/v3.0/applications/{applicationUuid}/dependencies/sourceFiles/matchSuggestions](https://api-docs.mend.io/platform/3.0/dependencies-source-files/getmatchsuggestionsapplication.md): Returns Mend library suggestions for the specified source file UUIDs. Request body requires: sourceFileUuids (array), recommendedForAllFiles (boolean). Supports same search filters as searchForMatch: date, license, name, owner, version.

## Search for library matches for source files at application level

 - [GET /api/v3.0/applications/{applicationUuid}/dependencies/sourceFiles/searchForMatch](https://api-docs.mend.io/platform/3.0/dependencies-source-files/searchformatchapplication.md): Returns library match suggestions from Mend based on manual search criteria. Uses V3 MQL search format. Available search filters: date:between:date1,date2 (e.g., between:2019-05-01,2019-06-01), license:[like|regex]:value, name:[like|equals|regex]:value, owner:like:value, version:like:value. Example: ?search=name==openssl.

## Remap source files at application level

 - [POST /api/v3.0/orgs/{orgUuid}/applications/dependencies/sourceFiles/remapping](https://api-docs.mend.io/platform/3.0/dependencies-source-files/remapsourcefilesapplication.md): Remaps the specified source files to a target library for the specified application(s). This operation runs asynchronously and returns 202 Accepted with async process status. Requires exactly one of: targetLibraryUuid OR matchSuggestionId (not both, not neither). Request body fields: applicationUuids (required, array), sourceFileUuids (required, array), targetLibraryUuid (conditional), matchSuggestionId (conditional), comment (optional), sendEmailNotification (optional, boolean).

## Remap source files at organization level

 - [POST /api/v3.0/orgs/{orgUuid}/dependencies/sourceFiles/remapping](https://api-docs.mend.io/platform/3.0/dependencies-source-files/remapsourcefilesorganization.md): Remaps the specified source files to a target library across the entire organization. This operation runs asynchronously and returns 202 Accepted with async process status. Requires exactly one of: targetLibraryUuid OR matchSuggestionId (not both, not neither). Request body fields: sourceFileUuids (required, array), targetLibraryUuid (conditional), matchSuggestionId (conditional), comment (optional), sendEmailNotification (optional, boolean).

## Remap all source files of a library at application level

 - [POST /api/v3.0/orgs/{orgUuid}/applications/dependencies/sourceFiles/remapping/by-library](https://api-docs.mend.io/platform/3.0/dependencies-source-files/remapalllibrarysourcefilesapplication.md): Remaps ALL source files currently mapped to the given originalLibrary to a target library for the specified application(s). The server resolves the library's source files on its own (no sourceFileUuids required). Runs asynchronously and returns 202 Accepted with async process status. Requires exactly one of: targetLibraryUuid OR matchSuggestionId.

## Remap all source files of a library at organization level

 - [POST /api/v3.0/orgs/{orgUuid}/dependencies/sourceFiles/remapping/by-library](https://api-docs.mend.io/platform/3.0/dependencies-source-files/remapalllibrarysourcefilesorganization.md): Remaps ALL source files currently mapped to the given originalLibrary to a target library across the entire organization. The server resolves the library's source files on its own (no sourceFileUuids required). Runs asynchronously and returns 202 Accepted with async process status. Requires exactly one of: targetLibraryUuid OR matchSuggestionId.

