---
title: "Upload attachment to MinIO"
method: PUT
path: "/v1/private/attachment/upload"
tags: ["Attachments"]
---

# Upload attachment to MinIO

`PUT /v1/private/attachment/upload`

Upload attachment to MinIO

## Query parameters

- `file_name` string, required
- `project_name` string — If null, the default project is used
- `mime_type` string
- `entity_type` 'trace' | 'span', required
- `entity_id` string, uuid, required

## Response `204`

No content

## Other responses

- `401` — Bad Request
- `403` — Access forbidden

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
