---
title: "Upload media file for campaign"
method: POST
path: "/api/upload"
tags: ["Files"]
---

# Upload media file for campaign

`POST /api/upload`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/upload`
- Auth: HTTP bearer

Uploads a media file to the campaign's storage folder

## Response `200`

File uploaded successfully

- object
  - `path` string: The path where the file was stored

## Other responses

- `400`: Bad request - missing file or campaignId
- `500`: Server error or upload failure

---

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