# Add or replace a one-file compliance document

> PUT /compliance-documents/{catalog_type}

Source: https://docs.trykintsugi.com/reference/2026-12-03/add-or-replace-a-one-file-compliance-document

API version: Tenanted API release 2026-12-03, latest, default in the docs

PUT /compliance-documents/{catalog_type}

Add or replace a one-file compliance document

Put the single file for a one-file catalog type, as `multipart/form-data` with the file in the `file` part. Creates the slot on first upload and replaces the stored file after that, returning 200 in both cases. A replace deletes the previous file and returns a new `id`; do not reuse the old id for preview. Returns 400 when the catalog type holds many files. The file must be a PDF of at most 10 MB. Requires an Owner user credential.

Category: Compliance Documents

Path parameters:
catalog_type (string, required) - Catalog type id, as returned by the list route. Only a built-in type that holds one file is accepted; a custom type holds many files.

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. New uploads are PDF, but files stored earlier may still be image types.
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
