---
title: "Upload Document File"
method: PUT
path: "/documents/{documentKey}/file"
tags: ["Documents"]
---

# Upload Document File

`PUT /documents/{documentKey}/file`

## Request

- Base URL: `https://eu-west-1.api.silverflow.com/v1`
- URL: `https://eu-west-1.api.silverflow.com/v1/documents/{documentKey}/file`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/silverflow/apis/silverflow-api/docs/documents/:documentKey/file/put.ts> (a function with typed inputs; its response is checked against the schema)

This operation uploads a file. A Document with matching content type and content length must have been created prior to that call. See [Add Dispute Document](#operation/addDisputeDocumentsMetadata).

The maximum file size is **10MB** and the maximum combined size of all documents uploaded for a Dispute is **14.5MB**.

Requires `disputes:UploadFile` or `documents:Upload` permission.

## Path parameters

- `documentKey` string, required: Uniquely identifies a document

## Request body `image/jpeg`

- string, binary

## Response `204`

(No-Content) File has been uploaded successfully.

## Other responses

- `401`: Authentication information is missing or invalid
- `403`: The authenticated client is forbidden to make the request for the resource identified.
- `404`: The requested resource was not found
- `409`: The request could not be completed due to a conflict with the current state of the resources involved in the request.
- `411`: The server doesn't accept requests without a defined 'content-Length'
- `413`: Request payload is larger than limits defined by server.
- `415`: The format of the request payload is not supported by the server
- `429`: The number of requests (per minute) has exceeded the configured maximum

---

[API](https://skmtc.dev/silverflow/apis/silverflow-api.md) - [All operations](https://skmtc.dev/silverflow/apis/silverflow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/silverflow/apis/silverflow-api/revisions/43ecbe4fd6ea?raw)
