---
title: "Updates the order attachment"
method: PUT
path: "/orders/{orderId}/attachments/{attachmentId}"
tags: ["orders"]
---

# Updates the order attachment

`PUT /orders/{orderId}/attachments/{attachmentId}`

ADD ENDPOINT DESCRIPTION HERE

## Path parameters

- `orderId` integer, required
- `attachmentId` integer, required

## Request body

- string

## Response `200`

successful operation

- OrderAttachmentGet
  - `filename` string — Name for the attachment. This name will be displayed in the attachments section for the given order
  - `printerType` 'LABEL_PRINTER' | 'DOCUMENT_PRINTER' | 'DOCUMENT_PRINTER_2_A6' | 'DOCUMENT_PRINTER_2_FOLIO', required — Printer type, which should be used for printing the document in the warehouse
  - `attachmentPlacement` 'INSIDE_PACKAGE' | 'OUTSIDE_PACKAGE', required — Where the attached document should be placed in regard to the parcel
  - `copyCount` integer, required — Number of times the attachment should be printed per shipment
  - `printingType` 'ORDER' | 'SHIPMENT' — If the attached document should be printed per order or per shipment
  - `fileKey` string
  - `mimeType` string
  - `id` integer
  - `url` Link
    - `link` string

---

[API](https://skmtc.dev/writechoiceorg/apis/connector.md) · [All operations](https://skmtc.dev/writechoiceorg/apis/connector/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/writechoiceorg/connector/revisions/7ce09a4b2a4e/schema)
