---
title: "Finalize attachment"
method: PATCH
path: "/seller/cases/{id}/attachments"
tags: ["seller-cases"]
---

# Finalize attachment

`PATCH /seller/cases/{id}/attachments`

Finalize a previously uploaded seller case attachment.

This is step 2 of the case attachment flow.

Validation:
- `imageId` must match the expected URN shape for the case and attachment ID.
- Uploaded image must exist and no longer be in draft state.
- Case must belong to one of the authenticated seller’s orders.

Responses:
- Returns `400` for invalid IDs or unfinished uploads.
- Returns `404` when the case is missing/not owned.
- Returns the saved attachment descriptor on success.

## Path parameters

- `id` string, required — Case ID

## Request body

- ImageUploadComplete — Image identifier to finalize upload
  - `id` string, required — Image identifier

## Response `200`

Attachment saved

- object
  - `url` string, uri, required
  - `party` 'SELLER' | 'BUYER' | 'SYSTEM', required
  - `createdAt` union, required
    - string, date-time
    - string, date-time

## Other responses

- `400` — Invalid image ID
- `404` — Case not found

---

[API](https://skmtc.net/managem/apis/managem-api.md) · [All operations](https://skmtc.net/managem/apis/managem-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/managem/managem-api/versions/6367b514f6ea/schema)
