Update a conversation Beta
Update an existing conversation using the conversation ID.
Path parameters
-
The conversation's
id
value.Minimum length is
1
. Format should match the following pattern:^(?! *$).+$
.
Body Required
-
apiConfig object
LLM API configuration.
Additional properties are allowed.
-
category string
The conversation category.
Values are
assistant
orinsights
. -
excludeFromLastConversationStorage.
-
A string that is not empty and does not contain only whitespace
Minimum length is
1
. Format should match the following pattern:^(?! *$).+$
. -
messages array[object]
The conversation messages.
-
replacements object
Replacements object used to anonymize/deanomymize messsages
-
summary object
Additional properties are allowed.
-
title string
The conversation title.
PUT /api/security_ai_assistant/current_user/conversations/{id}
curl \
-X PUT https://<KIBANA_URL>/api/security_ai_assistant/current_user/conversations/{id} \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"apiConfig": {
"actionTypeId": "string",
"connectorId": "string",
"defaultSystemPromptId": "string",
"model": "string",
"provider": "OpenAI"
},
"category": "assistant",
"excludeFromLastConversationStorage": true,
"id": "string",
"messages": [
{
"content": "string",
"isError": true,
"reader": {},
"role": "system",
"timestamp": "string",
"traceData": {
"traceId": "string",
"transactionId": "string"
}
}
],
"replacements": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"summary": {
"confidence": "low",
"content": "string",
"public": true,
"timestamp": "string"
},
"title": "string"
}
Response examples (200)
{
"apiConfig": {
"actionTypeId": "string",
"connectorId": "string",
"defaultSystemPromptId": "string",
"model": "string",
"provider": "OpenAI"
},
"category": "assistant",
"createdAt": "string",
"excludeFromLastConversationStorage": true,
"id": "string",
"isDefault": true,
"messages": [
{
"content": "string",
"isError": true,
"reader": {},
"role": "system",
"timestamp": "string",
"traceData": {
"traceId": "string",
"transactionId": "string"
}
}
],
"namespace": "string",
"replacements": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"summary": {
"confidence": "low",
"content": "string",
"public": true,
"timestamp": "string"
},
"timestamp": "string",
"title": "string",
"updatedAt": "string",
"users": [
{
"id": "string",
"name": "string"
}
]
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}