---
title: "Upload Files"
method: POST
path: "/v1/disputes/{disputeUuid}/files"
tags: ["Disputes"]
---

# Upload Files

`POST /v1/disputes/{disputeUuid}/files`

## Request

- Base URL: `https://api.casaphq.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.casaphq.com/v1/disputes/{disputeUuid}/files`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/casaphq/apis/casap-api/docs/v1/disputes/:disputeUuid/files/post.ts> (a function with typed inputs; its response is checked against the schema)

Attaches a supporting document to an existing dispute. Optional; requires the dispute uuid returned by Create Dispute, so it can only run after creation. Returns the file_uuid of the stored file.

## Path parameters

- `disputeUuid` string, required

## Request body

- DisputesUploadFileBody
  - `fileContent` string, byte
  - `filename` string
  - `contentType` string

## Response `200`

A successful response.

- V1UploadFileResponse
  - `fileUuid` string

## Other responses

- `default`: An unexpected error response.

---

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