v1
File Manager
File Manager

Confirm File Revision

Changed on

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.

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)
  • Auth
    none declared

Path parameters

file_id, integer required

files.id

Request body

FileRevisionConfirmRequest required

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

Successful Response

object required

Changes