# Replace one file under a many-file compliance document type

> PUT /compliance-documents/files/{document_id}

Source: https://docs.trykintsugi.com/reference/2026-07-21/replace-one-file-under-a-many-file-compliance-document-type

PUT /compliance-documents/files/{document_id}

Replace one file under a many-file compliance document type

Replace the bytes of one stored file under a many-file catalog type, as `multipart/form-data` with the file in the `file` part. Returns 400 when the file belongs to a one-file catalog type. The file must be a PDF, JPG, or PNG of at most 10 MB. Requires an Owner user credential.

Category: Compliance Documents

Path parameters:
document_id (string, required) - The unique identifier of the stored file.

Response fields:
id (string, required) - Kintsugi's unique identifier for the stored file.
fileName (string, required) - Name the file was uploaded under.
contentType (string, required) - Media type of the file.
size (integer, required) - Size of the file in bytes.
createdAt (string, required) - When the file was first stored, as an RFC-3339 UTC timestamp.
updatedAt (string, required) - When this stored row was last written, as an RFC-3339 UTC timestamp. Set when the file is created (same moment as `createdAt`) and again when `PUT /compliance-documents/files/{id}` overwrites that id. A one-file PUT on the catalog type mints a new id, so both timestamps are the time of that new row.

Response statuses: 200, 400, 401, 403, 404, 409, 413, 422, 500, 503

---

Index of every page: https://docs.trykintsugi.com/llms.txt
