Update a Knowledge Base Entry

PUT /api/security_ai_assistant/knowledge_base/entries/{id}

Update an existing Knowledge Base Entry by its unique id.

Path parameters

  • id string(nonempty) Required

    The unique identifier (id) of the Knowledge Base Entry to update.

    Minimum length is 1.

application/json

Body object Required

Any of:

Responses

  • 200 application/json

    Successful request returning the updated Knowledge Base Entry.

    Any of:
  • 400 application/json

    A generic error occurred, such as invalid input or the entry not being found.

    Hide response attributes Show response attributes object
    • error string Required

      Error type or category.

    • message string Required

      Detailed error message.

    • statusCode number Required

      HTTP status code of the error.

PUT /api/security_ai_assistant/knowledge_base/entries/{id}
curl \
 --request PUT 'https://localhost:5601/api/security_ai_assistant/knowledge_base/entries/12345' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"tags":["password","reset","help","update"],"title":"How to reset a password (updated)","content":"To reset your password, go to the settings page, click 'Reset Password', and follow the instructions."}'
Request example
{
  "tags": [
    "password",
    "reset",
    "help",
    "update"
  ],
  "title": "How to reset a password (updated)",
  "content": "To reset your password, go to the settings page, click 'Reset Password', and follow the instructions."
}
Response examples (200)
{
  "id": "12345",
  "tags": [
    "password",
    "reset",
    "help",
    "update"
  ],
  "title": "How to reset a password (updated)",
  "content": "To reset your password, go to the settings page, click 'Reset Password', and follow the instructions."
}
Response examples (400)
{
  "error": "Invalid input",
  "message": "The 'content' field cannot be empty."
}