# Upload or replace a filing artifact

> PUT /filings/{filing_id}/artifacts/{artifact_type}

Source: https://docs.trykintsugi.com/reference/2026-12-03/upload-or-replace-a-filing-artifact

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

PUT /filings/{filing_id}/artifacts/{artifact_type}

Upload or replace a filing artifact

Store a filing's return or payment confirmation document, as `multipart/form-data` with the document in the `file` part. `artifactType` picks the slot: `RETURN` or `PAYMENT`. Uploading to a slot that already holds a document replaces it. Returns 200 whether the slot was empty or full. A replace returns a new attachment `id`, so do not reuse the old id for download. Every upload adds an audit note to the filing, even when the file is identical to the stored one. Only a partner may upload, and only on a filing the partner files, not Kintsugi: the partner's portfolio key, or a partner user who can see the organization. The organization's own users and organization API keys cannot upload. Send an `Organization-Id`, `Connection-Id` or `Entity-Id` selector to say which organization the filing belongs to. The filing's status does not change. Download the stored document through `GET /attachments/{id}/download`.

The file must be a PDF, PNG or JPEG of at most 10 MB, and its extension must match its type. Returns 404 if the filing does not exist or belongs to an organization your credential cannot access, 403 if your portfolio does not file the return or your credential cannot upload for the partner, 409 if the filing is not in the FILING, SUBMITTED or FILED status, 413 if the file is too large, 422 if it is not an accepted type, and 400 if your session has no user id to attribute the upload to.

Category: Filings

Path parameters:
filing_id (string, required) - The unique identifier of the filing.
artifact_type (PublicFilingArtifactTypeEnum, required) - Which confirmation document the upload fills.
  allowed values: RETURN, PAYMENT

Response fields:
id (string, required) - Kintsugi's unique identifier for the attachment.
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.
relatedEntity (RelatedEntityRef, required) - The entity this attachment is held against.
  id (string, required) - Kintsugi's unique identifier for the related entity.
  type (string, required) - Kind of entity the attachment is held against.
[truncated, see the reference page]

---

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