Update a conversation
Update an existing conversation using the conversation ID. This endpoint allows users to modify the details of an existing conversation.
Body Required
-
LLM API configuration.
-
The conversation category.
Values are
assistant
orinsights
. -
Exclude from last conversation storage.
-
The ID of the anonymization field.
Minimum length is
1
. -
The conversation messages.
AI assistant conversation message.
-
Replacements object used to anonymize/deanonymize messages
-
The conversation title.
PUT /api/security_ai_assistant/current_user/conversations/{id}
curl \ --request PUT 'https://<KIBANA_URL>/api/security_ai_assistant/current_user/conversations/abc123' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --data '{"title":"Updated Security Discussion","category":"insights","messages":[{"role":"assistant","content":"The issue was resolved.","timestamp":"2023-10-31T12:30:00Z"}],"apiConfig":{"connectorId":"54321","actionTypeId":"09876"},"replacements":{},"excludeFromLastConversationStorage":true}'
Request example
{ "title": "Updated Security Discussion", "category": "insights", "messages": [ { "role": "assistant", "content": "The issue was resolved.", "timestamp": "2023-10-31T12:30:00Z" } ], "apiConfig": { "connectorId": "54321", "actionTypeId": "09876" }, "replacements": {}, "excludeFromLastConversationStorage": true }
Response examples (200)
{ "id": "abc123", "title": "Updated Security Discussion", "users": [ { "id": "user1", "name": "John Doe" } ], "category": "insights", "messages": [ { "role": "assistant", "content": "The issue was resolved.", "timestamp": "2023-10-31T12:30:00Z" } ], "apiConfig": { "connectorId": "54321", "actionTypeId": "09876" }, "createdAt": "2023-10-31T12:01:00Z", "updatedAt": "2023-10-31T12:31:00Z", "replacements": {}, "excludeFromLastConversationStorage": true }