---
title: "Confirm File Uploads"
method: POST
path: "/api/v1/files/confirm-uploads"
tags: ["v1", "File Manager"]
---

# Confirm File Uploads

`POST /api/v1/files/confirm-uploads`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/files/confirm-uploads`
- Auth: none declared

Register a whole upload batch, each file in its folder (JEEVY-2146,
JEEVY-2177, JEEVY-2178).

Body: ``{ project_id | quote_id, group_id?, files: [{ filePath, fileName,
mimeType?, size?, description?, relativePath?, groupId?, sourceType?,
sourceSubtype? }] }``. ``group_id`` is the drop target (root when
absent). ``relativePath`` is the pick's ``webkitRelativePath``; its
directory part is created under the target, once, parent before child,
and the file is created IN that folder. An item's own ``groupId`` (a
folder of this owner, as ``folders`` in an earlier answer named it) puts
the file there instead, so a retry lands where its siblings did. An upload makes exactly what was
picked: every folder in the pick is created, even beside one of the same
name, and a file keeps the name it was uploaded with, even beside a file
of the same name (Q8 on JEEVY-2175, reversed 2026-11-02: the storage key
is the identity, a name is a label, and the rename cost a read of every
live name per batch). Nothing existing is read or modified.

Validation is per item (a bad path or source type fails that file
alone); the write is one registration call for every good item, two
statements (JEEVY-2268 item 31), so a database failure fails them all
together and the client keeps them staged for a retry, which the unique
index on ``files(bucket, storage_path)`` makes safe. Returns
``{ results: [{ filePath, ok, file, source } | { filePath, ok: false,
error, status }], partial, folders }`` with ``results`` in the order
given and ``folders`` the ``relativeDir -> group_id`` map. The folder
tree is built before any file is registered, so a folder failure fails
the whole request with nothing created.

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-29** `2e4bc2bfca09`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/files/confirm-uploads/post.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
