---
title: "Set how many bytes of attachments the project may store"
method: PUT
path: "/projects/{project_id}/error-attachments/quota"
tags: ["error-tracking"]
---

# Set how many bytes of attachments the project may store

`PUT /projects/{project_id}/error-attachments/quota`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/error-attachments/quota`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Request body

- SetAttachmentQuotaRequest
  - `quota_bytes` integer, required: Bytes of attachments the project may store, 0 to 100 GiB. Lowering it deletes nothing: new attachments are dropped until use falls under it.

## Response `200`

Quota set

- AttachmentUsage: Whether attachments can be stored, and how much of the quota is used.
  - `configured` boolean, required: Whether blob storage is set up and answering.
  - `dropped_over_quota` integer, required: Since the server started: attachments dropped because the project was over its quota, across every project.
  - `dropped_queue_full` integer, required: Since the server started: attachments dropped because the upload queue was full, across every project.
  - `files` integer, required
  - `max_attachment_bytes` integer, required
  - `max_attachments_per_event` integer, required
  - `max_event_attachment_bytes` integer, required
  - `quota_bytes` integer, required
  - `reason` string, nullable: Why attachments are not stored, when they are not.
  - `setup_path` string, nullable: Console path where blob storage is enabled.
  - `used_bytes` integer, required

## Other responses

- `400`: Quota out of range
- `401`: Not authenticated
- `403`: Error tracking write permission required
- `500`: Internal server error

## Changes

- **2026-11-21** `451aa64395bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/error-attachments/quota/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
