Delete conversation attachment Technical Preview

DELETE /api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}

Spaces method and path for this operation:

delete /s/{space_id}/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}

Refer to Spaces for more information.

Delete an attachment. By default performs a soft delete (can be restored). Use permanent=true to permanently remove unreferenced attachments.

[Required authorization] Route required privileges: read_agent_builder.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • conversation_id string Required

    The unique identifier of the conversation.

  • attachment_id string Required

    The unique identifier of the attachment to delete.

Query parameters

  • permanent boolean

    If true, permanently removes the attachment (only for unreferenced attachments).

Responses

  • 200 application/json

    Indicates a successful response

DELETE /api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}
curl \
 --request DELETE 'https://<KIBANA_URL>/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}' \
 --header "Authorization: $API_KEY" \
 --header "kbn-xsrf: true"
Response examples (200)
Example response for permanent delete (cannot be restored)
{
  "success": true,
  "permanent": true
}
Example response for soft delete (can be restored)
{
  "success": true,
  "permanent": false
}