Index closed tickets.
- To index closed tickets, first make the collection named “closedtickets”.
- After the collection with given name is created, call the mentioned API which will index the closed tickets in the background
**Endpoint:** http://{{API_URL}}/external/api/event/index_tickets
**Method:** `POST`
**Description:** This endpoint allows users to index closed tickets details to
database
/*
Request body is optional
if not passed then performs indexing on all the closed tickets
else, performs indexing on the closed tickets with the last rounded hour before
the given UTC_time.
For given UTC_time, it will perform indexing for closed tickets with
^sys_updated_on>2025-01-23 01:00:00^sys_updated_on<=2025-01-23
02:00:00
*/
**Request Body:** {
“UTC_time”: “2025-01-23 02: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'
}