# Remap all source files of a library at organization level

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.

Endpoint: POST /api/v3.0/orgs/{orgUuid}/dependencies/sourceFiles/remapping/by-library
Version: 3.0
Security: bearer-key

## Path parameters:

  - `orgUuid` (string, required)
    org UUID (from the Mend App: Administration General > Organization UUID).

## Request fields (application/json):

  - `targetLibraryUuid` (string)
    The UUID of the library to which source files should be remapped. Exactly one of targetLibraryUuid or matchSuggestionId must be provided
    Example: "123e4567-e89b-12d3-a456-426655440000"

  - `matchSuggestionId` (string)
    The Id of the library to which source files should be remapped. Exactly one of targetLibraryUuid or matchSuggestionId must be provided
    Example: "ZWJlMTZhZjYtMmE2YS00MWQ1LWFiNTQtYWQ3YWE3OWZhNzFl"

  - `sourceFileUuids` (array)
    Example: ["123e4567-e89b-12d3-a456-426655440000"]

  - `comment` (string)
    Optional user comment explaining the reason for this remapping action

  - `sendEmailNotification` (boolean)
    Whether to send email notification upon completion of the remapping operation
    Example: true

  - `originalLibraryUuid` (string)
    When set (remap-all-by-library), the server resolves all source files currently mapped to this library on its own; sourceFileUuids is ignored.
    Example: "123e4567-e89b-12d3-a456-426655440000"

## Response 202 fields (application/json):

  - `uuid` (string)
    The unique identifier of the async process
    Example: "caf69794-9882-4b55-82db-6b6da4fe2a92"

  - `status` (string)
    The current status of the async process
    Enum: "PENDING", "IN_PROGRESS", "FAILED", "FAILURE", "SUCCESS"

  - `userEmail` (string)
    Email of the user who initiated the process
    Example: "user@example.com"

  - `requestToken` (string)
    Short token for tracking the request
    Example: "2cd6a43b"

## Response 400 fields (*/*):

  - `supportToken` (string)
    Example: "1171c60d"


