会話修正
指定したAI会話のタイトルを修正します。
HTTPリクエスト
PUT /api/sonar/ai/conversations/:guid
cURL例
curl -H "Authorization: Bearer <API_KEY>" \
-d title="セキュリティイベント分析" \
-X PUT \
https://HOSTNAME/api/sonar/ai/conversations/a1b2c3d4-e5f6-7890-abcd-ef1234567890
リクエストパラメータ
パスパラメータ
| キー | 型 | 説明 | 備考 |
|---|---|---|---|
| guid | 文字列 | 会話識別子 | 36桁のGUID |
リクエストボディパラメータ
| キー | 必須 | 型 | 説明 | 備考 |
|---|---|---|---|---|
| title | O | 文字列 | 会話タイトル |
正常応答
{}
エラー応答
識別子がGUID形式でない場合
HTTPステータスコード 400 応答
{
"error_code": "invalid-param-type",
"error_msg": "guid should be guid type."
}
会話が存在しない場合
HTTPステータスコード 500 応答
{
"error_code": "illegal-state",
"error_msg": "conversation not found"
}
必須パラメータが不足している場合
HTTPステータスコード 400 応答
{
"error_code": "null-argument",
"error_msg": "title should be not null"
}