---
title: "Finalize a bug attachment after direct-to-storage upload"
method: POST
path: "/v1/bugs/{bug_uuid}/attachment/finalize"
tags: ["bugs"]
---

# Finalize a bug attachment after direct-to-storage upload

`POST /v1/bugs/{bug_uuid}/attachment/finalize`

Verify the uploaded object exists in storage and persist the attachment metadata on the bug row. Returns the updated bug.

## Path parameters

- `bug_uuid` string, required

## Headers

- `x-api-key` string

## Request body

- AttachmentFinalizeBody
  - `storage_path` string, required
  - `filename` string, required
  - `content_type` string, required
  - `size` integer, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/qualgent/apis/qualgent-api-service.md) · [All operations](https://skmtc.dev/qualgent/apis/qualgent-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qualgent/qualgent-api-service/revisions/2372ed4904a6/schema)
