Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KilzaNiko/WimExplorer/llms.txt
Use this file to discover all available pages before exploring further.
All file-operation endpoints require a WIM to be open. Call
POST /api/open first, then GET /api/browse to populate the conflict-detection index.POST /api/extract
Extracts one or more files or directories from the current image to a local destination directory. Internally runs:Request
Array of WIM-relative paths to extract. Use backslash separators.Example:
["\\\\Windows\\\\System32\\\\ntdll.dll", "\\\\Windows\\\\explorer.exe"]Absolute path of the local directory to extract into. Created automatically if it does not exist.
Response
true when all paths were extracted successfully.Human-readable summary, e.g.
"Extraído(s) 2 elemento(s) a C:\\output".Example
POST /api/add
Uploads one or more files and adds them into the current image at the specified destination path. Acceptsmultipart/form-data.
Files are first written to a temporary directory on the server, then added to the WIM via wimlib-imagex update with add commands piped through stdin. Temporary files are deleted after the operation.
Request
Content-Type:multipart/form-data
One or more files to upload. Maximum 50 files per request.
WIM-relative destination directory. Each uploaded file is placed at
<destPath>\\<originalname>. Defaults to the root \\.Response
true when all files were added successfully.Human-readable summary, e.g.
"Agregado(s) 3 archivo(s)".Example
POST /api/delete
Deletes one or more files or directories from the current image. Internally issuesdelete "<path>" commands to wimlib-imagex update via stdin. Deleting a directory removes it and all its contents.
Request
Array of WIM-relative paths to delete.Example:
["\\\\Windows\\\\Temp\\\\old.log", "\\\\Users\\\\Default\\\\Downloads"]Response
true when all paths were deleted successfully.Human-readable summary, e.g.
"Eliminado(s) 2 elemento(s)".Example
POST /api/replace
Replaces a single file in the current image with an uploaded file. Acceptsmultipart/form-data.
The operation is atomic at the wimlib level: the server first issues a delete for the target path, then an add in the same wimlib-imagex update call.
Request
Content-Type:multipart/form-data
The single replacement file to upload.
Full WIM-relative path of the file to replace, including filename.Example:
\\Windows\\System32\\drivers\\etc\\hostsResponse
true when the replace completed successfully.Confirmation string, e.g.
"Reemplazado: \\Windows\\System32\\ntdll.dll".Example
POST /api/check-conflicts
Checks which files in a proposed upload set already exist in the current image. Uses the cached path index built byGET /api/browse for O(1) lookups — no disk I/O is performed.
Call
GET /api/browse before this endpoint to ensure the path index is up to date.Request
Array of file descriptors to check.
WIM-relative destination directory where the files would be placed.
Response
Total number of files checked.
Number of files that do not yet exist in the image.
Number of files that already exist in the image.
Entries for each conflicting file.
Entries for each new (non-conflicting) file. Same shape as
conflictList.Example
POST /api/batch-import
Uploads up to 200 files in a single request and adds them to the current image. Conflicting files (those that already exist at their destination path) are automatically replaced. Acceptsmultipart/form-data.
The server performs a server-side revalidation against the cached wimPathsLower index before writing, regardless of what POST /api/check-conflicts reported client-side. This prevents race conditions.
Request
Content-Type:multipart/form-data
Files to upload. Maximum 200 files per request.
JSON-encoded array of WIM-relative destination paths, one per file in the same order as the
files field.Example: '["\\\\folder\\\\a.txt", "\\\\folder\\\\b.txt"]'Response
true when the import completed.Summary including the number of files imported and replaced, e.g.
"Importados 5 archivo(s) (2 reemplazados)".