---
title: "Create Annotation Attachment"
method: POST
path: "/api/v1/annotations/{annotation_id}/attachments"
tags: ["annotations"]
---

# Create Annotation Attachment

`POST /api/v1/annotations/{annotation_id}/attachments`

## Path parameters

- `annotation_id` string, uuid, required

## Request body

- CreateAttachmentRequest
  - `id` string, uuid, nullable
  - `filename` string, required
  - `content_type` 'image/png' | 'image/jpeg' | 'image/webp', required
  - `byte_size` integer, required
  - `sha256` string, required

## Response `201`

Successful Response

- CreateAttachmentResponse
  - `attachment` AnnotationAttachment, required
    - `id` string, uuid, required
    - `annotation_id` string, uuid, required
    - `content_type` string, required
    - `byte_size` integer, required
    - `sha256` string, required
    - `filename` string, required
    - `state` 'pending' | 'confirmed', required
    - `created_by` string, uuid, nullable, required
    - `created_at` string, date-time, required
  - `upload_url` string, required
  - `annotation` Annotation, required — unresolved $ref

## Other responses

- `4XX` — Client Error
- `5XX` — Server Error

---

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