This endpoint is used to index one record on a index. The information to pick correct config is provided with the data to be indexed.
POST
/index-operations/{key}/_indexLast modified: 7 months ago
Index request to index one record on an index
Request
Path Params
key
string
required
Example:
finance-adoption-topic
Header Params
Content-Type
string
optional
Example:
application/json
Body Params text/plain
Example:{
"RequestInfo": {
"apiId": null,
"ver": null,
"ts": null,
"action": "POST",
"did": null,
"key": null,
"msgId": "5bfa85e7-dfa1-47c8-98b2-747bf552be86",
"userInfo": {
"id": 1410,
"uuid": "fd894f14-254f-43ee-a4cd-cc4bbc856c5a",
"userName": "AllAcessNew1",
"name": "mustak",
"mobileNumber": "9353822214",
"emailId": "xyz@egovernments.org",
"locale": "string",
"type": "EMPLOYEE",
"roles": [
{
"name": "Super User",
"code": "SUPERUSER",
"tenantId": "pb"
},
{
"name": "PGR Last Mile Employee",
"code": "PGR_LME",
"tenantId": "pb"
},
{
"name": "Department Grievance Routing Officer",
"code": "DGRO",
"tenantId": "pb"
},
{
"name": "HRMS Admin",
"code": "HRMS_ADMIN",
"tenantId": "pb"
},
{
"name": "Citizen",
"code": "CITIZEN",
"tenantId": "pb"
},
{
"name": "FSM Employee Report Viewer",
"code": "FSM_REPORT_VIEWER",
"tenantId": "pb"
},
{
"name": "Grievance Routing Officer",
"code": "GRO",
"tenantId": "pb"
},
{
"name": "FSM Desluding Operator",
"code": "FSM_DSO",
"tenantId": "pb"
},
{
"name": "FSM Administrator",
"code": "FSM_ADMIN",
"tenantId": "pb"
},
{
"name": "System user",
"code": "SYSTEM",
"tenantId": "pb"
},
{
"name": "Employee",
"code": "EMPLOYEE",
"tenantId": "pb"
}
],
"active": true,
"tenantId": "pb",
"permanentCity": "Kaikoo"
},
"authToken": "26d8de89-1b00-4bfe-86e0-5b3fd4a270a9"
},
"service": {
"tenantId": "pb.amritsar",
"serviceCode": "OverflowingOrBlockedDrain",
"description": "overflowing drain",
"additionalDetail": {
"sdsadsadsad": "asdsadsadsadsa"
},
"source": "whatsapp",
"address": {
"doorNo": "2",
"plotNo": "10",
"landmark": "Near City Hall",
"city": "Amritsar",
"district": "Amritsar",
"region": "Amritsar",
"state": "Punjab",
"country": "India",
"pincode": "111111",
"buildingName": "Safalya",
"street": "10th main",
"locality": {
"code": "SUN01"
},
"geoLocation": {
"latitude": 21,
"longitude": 56,
"additionalDetails": {}
}
}
},
"workflow": {
"action": "APPLY",
"assignes": [],
"comments": "Drain Overflowing",
"verificationDocuments": [
{
"documentType": "PHOTO",
"fileStoreId": "b0c5a846-c75a-11ea-87d0-0242ac130003",
"documentUid": "",
"additionalDetails": {}
}
]
}
}
Request samples
Responses
OK(200)
Invalid input.(400)
Unauthorized(401)
Forbidden(403)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"service": {
"tenantId": "pb.amritsar",
"serviceCode": "NoStreetlight",
"description": "",
"additionalDetail": {},
"source": "web",
"address": {
"city": "Amritsar",
"district": "Amritsar",
"region": "Amritsar",
"state": "Panjab",
"pincode": "143001",
"locality": {
"code": "SUN04",
"name": "Ajit Nagar"
},
"geoLocation": {}
}
},
"workflow": {
"action": "APPLY"
}
}
Last modified: 7 months ago