/search (POST)
POST
/search
const url = 'https://api.quantcdn.io/v1/search';const options = { method: 'POST', headers: { 'Quant-Customer': 'example', 'Quant-Project': 'example', 'Quant-Token': '<Quant-Token>', 'Content-Type': 'application/json' }, body: '[{"title":"example","content":"example","url":"example","summary":"example"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.quantcdn.io/v1/search \ --header 'Content-Type: application/json' \ --header 'Quant-Customer: example' \ --header 'Quant-Project: example' \ --header 'Quant-Token: <Quant-Token>' \ --data '[ { "title": "example", "content": "example", "url": "example", "summary": "example" } ]'Create or update items in search index
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Quant-Customer
required
string
The customer account name
Quant-Project
required
string
The project machine name
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Search records
Array<object>
A search record
object
title
The title of a search record
string
content
The full body of content related to a search record
string
url
The URL of a search record
string
summary
The optional summary of a search record
string
Examplegenerated
[ { "title": "example", "content": "example", "url": "example", "summary": "example" }]Responses
Section titled “Responses”Okay
Invalid payload, should contain array of search records
Invalid credentials
