Suggest a fix for an explorer query
An AI-suggested correction of an invalid query, or a cheaper one with the same intent for a 422 QUERY_TOO_EXPENSIVE; validated but never run. reason NO_ANSWER when none was found. Requires the METER_DATA.VIEW or INVOICE.VIEW permission.
Authentication
X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
version
version
Headers
x-platform-id
Platform ID.
Request
This endpoint expects an object.
query
The query to fix.
failure
For a valid query that failed when it ran with 422 QUERY_TOO_EXPENSIVE: TOO_SLOW for query_too_expensive.cause TIME, TOO_BROAD for ROWS or MEMORY. The suggestion is then a cheaper query with the same intent. Without it a valid query has no fix (null).
Allowed values:
Response
OK
suggested_query
A corrected query that is valid for this platform, or null when none was found. Never run automatically.
explanation
One short sentence on what was changed, or null.
reason
NO_ANSWER when suggested_query is null: no valid fix was found. Absent otherwise.
Allowed values:
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
504
Gateway Timeout Error