Delete a conversation
Delete an existing conversation using the conversation ID. This endpoint allows users to permanently delete a conversation.
Path parameters
-
id
string(nonempty) Required The conversation's
id
value.Minimum length is
1
.
DELETE
/api/security_ai_assistant/current_user/conversations/{id}
curl \
--request DELETE 'https://localhost:5601/api/security_ai_assistant/current_user/conversations/abc123' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"id": "abc123",
"title": "Deleted Security Discussion",
"users": [
{
"id": "user1",
"name": "John Doe"
}
],
"category": "assistant",
"messages": [
{
"role": "system",
"content": "The conversation has been deleted.",
"timestamp": "2023-10-31T12:35:00Z"
}
],
"apiConfig": {
"connectorId": "12345",
"actionTypeId": "67890"
},
"createdAt": "2023-10-31T12:01:00Z",
"updatedAt": "2023-10-31T12:01:00Z",
"replacements": {},
"excludeFromLastConversationStorage": false
}