---
title: "Confirm File Revision"
method: POST
path: "/api/v1/files/{file_id}/revisions/confirm"
tags: ["v1", "File Manager"]
---

# Confirm File Revision

`POST /api/v1/files/{file_id}/revisions/confirm`

## 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/{file_id}/revisions/confirm`
- Auth: none declared

After the client PUTs the new revision's bytes to the signed URL,
snapshot the file's current (about-to-be-superseded) state into
file_revisions, then overwrite the files row with the new revision and
log a 'revision' event onto the Timeline feed.

## Path parameters

- `file_id` integer, required: files.id

## Request body

- FileRevisionConfirmRequest: Body for POST .../revisions/confirm — mirrors the deliverable-sources upload-url/confirm-upload two-phase contract (client PUTs to the signed URL first, then this call records the new revision server-side).
  - `storage_path` string, required
  - `file_name` string, required
  - `mime_type` string, nullable
  - `size` integer
  - `keep_current` boolean, nullable
  - `expected_content_generation` integer, nullable
  - `idempotency_key` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-14** `0232dd947747`: 2 info
  - added the new optional request property `expected_content_generation`
  - added the new optional request property `idempotency_key`
- **2026-10-20** `9eebba4f395d`: 1 info
  - added the new optional request property `keep_current`

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/files/:file_id/revisions/confirm/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)
