---
title: "Upload a file to a case"
method: POST
path: "/cases/{id}/files"
tags: ["Cases"]
---

# Upload a file to a case

`POST /cases/{id}/files`

Uploads a file and attaches it to a case. Mirrors the file upload action available in the Partner portal.

**Access:** Collection partners only. Managing partners are rejected.

**Status gate:** Allowed on all non-Merged statuses, including Closed. Only Merged cases are rejected.

**File requirements:**
- Maximum size: 25 MB
- Allowed extensions: `.pdf` `.doc` `.docx` `.xls` `.xlsx` `.jpg` `.jpeg` `.png` `.txt` `.zip` `.csv` `.eml`

**DocumentType (optional):**
- `OriginalInvoice` — the original invoice document
- `DebtorDocuments` — documents provided by the debtor
- `CreditorDocuments` — documents provided by the creditor
- `PartnerDocuments` — documents provided by the collection partner
- `DemandLetter` — formal demand letter
- `Miscellaneous` — other supporting documents

The file is immediately visible to the creditor.

## Path parameters

- `id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Response `200`

File uploaded successfully

- DebituraWebExternalApiContractsV1FilesCaseFileDto
  - `id` string, uuid
  - `dateCreated` string, date-time
  - `dateUpdated` string, date-time
  - `caseId` string, uuid
  - `entityType` string, nullable
  - `entityId` string, uuid
  - `fileName` string, nullable
  - `url` string, nullable
  - `description` string, nullable
  - `documentType` string, nullable

## Other responses

- `400` — Invalid request — missing file, unsupported extension, or request validation error
- `404` — Case not found or not assigned to this collection partner
- `409` — Case is Merged and cannot accept new files
- `413` — File exceeds the 25 MB size limit
- `415` — Unsupported file extension
- `500` — Internal server error

---

[API](https://skmtc.net/debitura/apis/debitura-collection-partner-api.md) · [All operations](https://skmtc.net/debitura/apis/debitura-collection-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/debitura/debitura-collection-partner-api/revisions/d0dcc5024bd1/schema)
