Update AI Conversation

Renames the specified AI conversation. The new title is recorded as a user-set custom title, and a user can only update conversations they own.

Required Permissions

Requires the MEMBER role or higher.

HTTP Request

PUT /api/sonar/ai/conversations/:guid
cURL Example
curl -H "Authorization: Bearer <API_KEY>" \
     -d title="Anomalous traffic investigation" \
     -X PUT \
     https://HOSTNAME/api/sonar/ai/conversations/a1b2c3d4-e5f6-7890-abcd-ef1234567890
Request Parameters
Path Parameters
KeyTypeDescriptionNotes
guidStringConversation GUID36 characters
Request Body Parameters
KeyRequiredTypeDescriptionNotes
titleYesStringNew conversation title

Success Response

{}

Error Responses

A required parameter is missing

HTTP status code 400

{
  "error_code": "null-argument",
  "error_msg": "title should be not null"
}
guid is not a valid GUID

HTTP status code 400

{
  "error_code": "invalid-param-type",
  "error_msg": "guid should be guid type."
}
Conversation does not exist

HTTP status code 500

{
  "error_code": "illegal-state",
  "error_msg": "conversation not found: a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
Permission denied

HTTP status code 500

{
  "error_code": "illegal-state",
  "error_msg": "no-permission"
}