---
title: "Changes to Update file metadata and properties"
method: PUT
path: "/api/files/{file_id}"
---

# Changes to Update file metadata and properties

`PUT /api/files/{file_id}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 4 of 28 revisions.

- **2025-09-24** `ad76e6bdf403` — 2 info
- **2025-09-22** `861532a21ad9` — 5 breaking, 2 warning, 7 info
- **2025-09-22** `93deff514935` — 1 info
- **2025-09-01** `a2488be8a6e4` — 1 breaking

## Changes

- **2025-09-24** `ad76e6bdf403` — 2 info
  - the endpoint scheme security `bearerAuth AND cookieAuth` was added to the API
  - the endpoint scheme security `cookieAuth` was removed from the API
- **2025-09-22** `861532a21ad9` — 5 breaking, 2 warning, 7 info
  - removed the required property `file_hash` from the response with the `200` status
  - removed the required property `file_size` from the response with the `200` status
  - removed the required property `mime_type` from the response with the `200` status
  - removed the required property `original_filename` from the response with the `200` status
  - removed the required property `user_id` from the response with the `200` status
  - removed the optional property `created_at` from the response with the `200` status
  - removed the optional property `updated_at` from the response with the `200` status
  - added the optional property `createdAt` to the response with the `200` status
  - added the optional property `updatedAt` to the response with the `200` status
  - added the required property `fileHash` to the response with the `200` status
  - added the required property `fileSize` to the response with the `200` status
  - added the required property `mimeType` to the response with the `200` status
  - added the required property `originalFilename` to the response with the `200` status
  - added the required property `userId` to the response with the `200` status
- **2025-09-22** `93deff514935` — 1 info
  - endpoint added
- **2025-09-01** `a2488be8a6e4` — 1 breaking
  - api path removed without deprecation

---

[Operation](https://skmtc.dev/patroninc/apis/patron-api/docs/api/files/:file_id/put.md) · [API](https://skmtc.dev/patroninc/apis/patron-api.md) · [Page](https://skmtc.dev/patroninc/apis/patron-api/changes/api/files/:file_id/put)
