Get Query Suggestions V2
POST/iam/api/v2/suggestion
Suggest auto completion for RQL and notify whether the current RQL is valid or not
Request
- application/json
Body
required
query string
Query to validate
Responses
- 200
- 400
- 401
- 403
- 404
- 429
OK
- application/json
- Schema
- Example (from schema)
Schema
valid boolean
Is query valid
suggestions string[]
Suggestion list
translate boolean
Should translate
needsOffsetUpdate boolean
Should add offset from the query beginning
offset int32
The number of characters of offset from the query beginning
{
"valid": true,
"suggestions": [
"AND"
],
"translate": false,
"needsOffsetUpdate": true,
"offset": 43
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Throttled
Response Headers
X-RateLimit-Remaining integer
X-RateLimit-Requested-Tokens integer
X-RateLimit-Burst-Capacity integer
X-RateLimit-Replenish-Rate integer
Loading...