Skip to main content

SearchIndex

POST {{baseURL}}api/v1/search/index

Description

Create a search index

Request

  • Headers:

    • Content-Type: application/json
    • Accept: */*
  • URL:

    • Raw URL: {{baseURL}}/api/v1/search/index
    • Host: {{baseUrl}}
    • Path: /search/index
  • Body:

{
"serviceId": "string",
"tenantId": "string",
"templateName": "string",
"data": [
"string"
]
}

Responses

  • 200: Success.

  • 400: Bad Request. The request is not valid.

  • 404: Not Found. The requested resource was not found.

Headers

Content-TypeValue
Accept-Language

Headers

Content-TypeValue
Content-Typeapplication/json

Headers

Content-TypeValue
Accepttext/plain

Sample Request

{
"serviceId": "9a7ade80-98d5-11ee-b9d1-0242ac120005",
"templateName":"search-003",
"tenantId": "64db686b3f9c4bc18d5c6507",
"data": [
{
"id": "9a7ade80-98d5-11ee-b9d1-0242ac120002",
"sku": "prod-001",
"productname": "Milk",
"cost": 2000,
"category": "dairy",
"manufacturer": "some_random_string"
}
]
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /search-management \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!