---
title: "Update an attachment's metadata"
method: PUT
path: "/v1/attachments/{attachmentId}"
tags: ["Attachments"]
---

# Update an attachment's metadata

`PUT /v1/attachments/{attachmentId}`

## Request

- Base URL: `https://api.bigchange.com`
- URL: `https://api.bigchange.com/v1/attachments/{attachmentId}`
- Auth: HTTP bearer

Updates the metadata of a single attachment (required scope attachments:write)

## Path parameters

- `attachmentId` integer, required

## Headers

- `Customer-Id` integer, required

## Request body

- UpdateAttachmentModel: Represents a model containing information for updating an attachment's metadata
  - `fileName` string: The file name to assign to the attachment<br/> <br/>Validation:<br/>- Required<br/>- Maximum length of 250 characters
  - `isVisibleToResource` boolean: Whether the attachment should be visible to the resource

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Content
- `500`: Internal Server Error

## Changes

- **2026-09-30** `45b05fe73cc9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bigchange/apis/bigchange-dx/changes/v1/attachments/:attachmentId/put.md)

---

[API](https://skmtc.dev/bigchange/apis/bigchange-dx.md) - [All operations](https://skmtc.dev/bigchange/apis/bigchange-dx/llms.txt) - [OpenAPI document](https://skmtc.dev/bigchange/apis/bigchange-dx/revisions/b262bfdb1dd0?raw)
