Spaces method and path for this operation:
patch /s/{space_id}/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}
Refer to Spaces for more information.
Rename an attachment without creating a new version.
[Required authorization] Route required privileges: read_agent_builder.
Path parameters
-
The unique identifier of the conversation.
-
The unique identifier of the attachment to rename.
PATCH
/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}
curl \
--request PATCH 'https://<KIBANA_URL>/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"description":"Updated attachment name"}'
Request example
Example request for renaming an attachment
{
"description": "Updated attachment name"
}
Response examples (200)
Example response returning the renamed attachment (version unchanged)
{
"success": true,
"attachment": {
"id": "att-abc123",
"type": "text",
"active": true,
"versions": [
{
"data": "Content remains the same",
"version": 1,
"created_at": "2025-01-06T10:00:00.000Z",
"content_hash": "sha256-xyz",
"estimated_tokens": 10
}
],
"description": "Updated attachment name",
"current_version": 1
}
}