---
title: "Upload attachment"
method: POST
path: "/attachment/{code}"
tags: ["attachments"]
---

# Upload attachment

`POST /attachment/{code}`

This method allows to upload attachment to Qase.
Max upload size:
* Up to 32 Mb per file
* Up to 128 Mb per single request
* Up to 20 files per single request

If there is no free space left in your team account,
you will receive an error with code 507 - Insufficient Storage.

## Path parameters

- `code` string, required

## Response `200`

An attachments.

- AttachmentUploadsResponse
  - `status` boolean
  - `result` object[]
    - `hash` string
    - `filename` string
    - `mime` string
    - `extension` string
    - `url` string
    - `team` string

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `413` — Payload Too Large.
- `429` — Too Many Requests.

---

[API](https://skmtc.dev/qase/apis/qase-io-testops-api-v1.md) · [All operations](https://skmtc.dev/qase/apis/qase-io-testops-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qase/qase-io-testops-api-v1/revisions/12ddc644fac5/schema)
