Repairs an invalid KQL query using its validation errors.
Feeds the failing KQL and the validation messages it produced back to the model and
re-validates the result. Use this after
/validate (or a failed /query)
reports errors. As with generation, the returned valid field reflects whether
the corrected query passes engine validation.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Request Body
EdxAiFixRequestV202606
| Property | Description | Type |
|---|---|---|
| errors | string[] | |
| kql | string |
Example Request Body
{ "errors": [
"string"
], "kql": "string"
}
Responses
200
A fix was attempted; check `valid` to confirm the result parses.
The request succeeded and the response body contains the requested data.
Response Body Parameters
EdxAiGenerateResponseV202606
| Property | Description | Type |
|---|---|---|
| attempts | integer (int32) | |
| error | string | |
| errors | string[] | |
| explanation | string | |
| kql | string | |
| success | boolean | |
| valid | boolean |
Example Response
{ "attempts": 1, "error": "string", "errors": [
"string"
], "explanation": "string", "kql": "string", "success": false, "valid": false
}