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

# Update an attachment

`POST /attachments/{attachment}`

REQUIRED SCOPES <code>['attachments:write']</code><br>Update an attachment

## Path parameters

- `attachment` integer, required

## Request body

- object
  - `name` string — New name for the attachment

## Response `200`

Successful operation

- AttachmentResource
  - `source` string — Transform the resource into an array.
  - `source_short` string
  - `content_type` string

## Other responses

- `401` — Unauthenticated
- `403` — Forbidden
- `404` — Attachment not found
- `422` — Validation error

---

[API](https://skmtc.net/salesmessage/apis/salesmessage-public-api.md) · [All operations](https://skmtc.net/salesmessage/apis/salesmessage-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesmessage/salesmessage-public-api/revisions/e96b3e58b041/schema)
