# Validate file mapping using location

Endpoint: POST /file-mapping/validate-file-mapping-by-location
Version: 3.27.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header Authorization

## Request fields (application/json):

  - `source_data_id` (string, required)
    The ID of the source object (dSource or VDB) to provision from.
    Example: 1-source-123

  - `locations` (array, required)
    The list of locations to use for source files to be mapped.

  - `file_mapping_rules` (string, required)
    File mapping rules for the VDB provisioning.

  - `file_system_layout` (object)

  - `file_system_layout.targetDirectory` (string)
    The base directory to use for the exported database.
    Example: /work/v2pdb

  - `file_system_layout.dataDirectory` (string)
    The directory for data files.
    Example: /work/v2pdb/data

  - `file_system_layout.archiveDirectory` (string)
    The directory for archive files.
    Example: /work/v2pdb/archive

  - `file_system_layout.externalDirectory` (string)
    The directory for external files.
    Example: /work/v2pdb/external

  - `file_system_layout.tempDirectory` (string)
    The directory for temporary files.
    Example: /work/v2pdb/temp

  - `file_system_layout.scriptDirectory` (string)
    The directory for script files.
    Example: /work/v2pdb/script

  - `file_system_layout.useAbsolutePathForDataFiles` (boolean)
    Whether to use absolute path for data files (Oracle only).
    Example: false

## Response 200:

  - `200` (unknown)
    Database file mapping validation result by location

## Response 200 fields (application/json):

  - `mapped_files` (object)
    A mapping of source file paths to destination file paths.

