Index articles
- To index articles, make sure to create a collection named “knowledgearticles”.
- After the collection with given name is created, call the mentioned API which will index the articles in the background.
**Endpoint:** http://{{API_URL}}/external/api/event/index_articles
**Method:** `POST`
**Description:** This endpoint allows users to index kb articles details to
database
/*
Request body is optional
if not passed then performs indexing on all the kb articles
else, performs indexing on the kb articles with the last rounded hour before the
given UTC_time.
For given UTC_time, it will perform indexing for kb articles with
^sys_updated_on>2024-12-20 13:00:00^sys_updated_on<=2024-12-20
14:00:00
*/
**Request Body:** {
“UTC_time”: “2024-12-20 14:43:32”
}
**Response:**
{
“status: “triggered”
}
**Failure Response:** // in case of invalid time sent in UTC_time
field
{
status: false,
message: 'Invalid UTC_time format. Please use: YYYY-MM-DD HH:MM:SS'
}