---
title: "Rename attachment"
method: PATCH
path: "/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}"
tags: ["agent builder"]
---

# Rename attachment

`PATCH /api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}`

**Spaces method and path for this operation:**

<div><span class="operation-verb patch">patch</span>&nbsp;<span class="operation-path">/s/{space_id}/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Rename an attachment without creating a new version.<br/><br/>[Required authorization] Route required privileges: agentBuilder:read.

## Path parameters

- `conversation_id` string, required
- `attachment_id` string, required

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `description` string, required — The new description/name for the attachment.

## Response `200`

Indicates a successful response

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elastic/kibana-apis/revisions/5b8b1756d13d/schema)
