---
title: "Update an attachment"
method: PUT
path: "/attachments/{attachment_id}"
tags: ["attachments"]
---

# Update an attachment

`PUT /attachments/{attachment_id}`

Updates a matching attachment.

## Request body

- object
  - `data` object, required
    - `attributes` object, required
      - `filename` string
      - `url` string

## Response `200`

The updated attachment.

- object
  - `data` Attachment, required
    - `id` string, required — Unique identifier for the resource instance.
    - `type` 'attachments', required — The type of the resource.
    - `attributes` AttachmentAttributes, required
      - `mimetype` string, required — The MIME type of the file.
      - `extension` string — The file suffix.
      - `filename` string, required — The complete file name, including its suffix (if any).
      - `size` integer — The file size in bytes.
      - `width` integer — The image width in pixels.
      - `height` integer — The image height in pixels.
      - `url` string, required — The file URL.
      - `position` integer — The attachment ranking position in the Brandfolder UI.
      - `thumbnail_url` string — The URL of the the attachment's thumbnail image.

## Other responses

- `default` — Generic error payload

---

[API](https://skmtc.net/smartsheet/apis/brandfolder-openapi-reference.md) · [All operations](https://skmtc.net/smartsheet/apis/brandfolder-openapi-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartsheet/brandfolder-openapi-reference/revisions/fd95b0a2d2f8/schema)
