---
title: "Update attachment"
method: POST
path: "/document/attachment/update"
tags: ["Document"]
deprecated: true
---

# Update attachment

`POST /document/attachment/update`

> **Deprecated.**

Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update an existing attachment

## Request body

- object
  - `id` string, required
  - `data` object, required
    - `label` string, required
    - `data` string, uri, required

## Response `200`

Successful response

- object
  - `success` boolean, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

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