Menu
Validate query (GET /_validate/query)
Validate query
GET
/_validate/queryUse it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Validate query (GET /_validate/query) action (under indices).
- Fill in the fields below, then reference the result from later steps as
{{validateQueryGetValidateQuery.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{validateQueryGetValidateQuery.response.data.<field>}}.
{
"valid": false,
"explanations": [
{
"index": "string",
"valid": false,
"error": "string",
"explanation": "string"
}
],
"_shards": {
"failed": 0,
"successful": 0,
"total": 0,
"failures": [
{
"shard": 0,
"reason": {
"type": "string",
"reason": "string",
"stack_trace": "string",
"caused_by": {},
"root_cause": [
{}
],
"suppressed": [
{}
],
"header": {}
},
"index": "string",
"node": "string"
}
],
"skipped": 0
},
"error": "string"
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?