---
title: "Rename Attachment"
method: PATCH
path: "/api/transactions/{transaction_id}/attachments/{attachment_id}"
tags: ["attachments"]
---

# Rename Attachment

`PATCH /api/transactions/{transaction_id}/attachments/{attachment_id}`

## Path parameters

- `transaction_id` string, uuid, required
- `attachment_id` string, uuid, required

## Headers

- `X-Workspace-Id` string, nullable

## Request body

- AttachmentRename
  - `filename` string, required

## Response `200`

Successful Response

- AttachmentRead
  - `id` string, uuid, required
  - `transaction_id` string, uuid, required
  - `filename` string, required
  - `content_type` string, required
  - `size` integer, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/usesecuro/apis/securo.md) · [All operations](https://skmtc.dev/usesecuro/apis/securo/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usesecuro/securo/revisions/1df3dfa0c028/schema)
