Suggest completions for an explorer query
Completions at the cursor, of the sources the caller may read, and the problems of the whole query. 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 being typed.
cursor
The cursor: a 0-based offset into query, in UTF-16 code units. Defaults to the end of the query.
Response
OK
replace_from
Start of the range of query a suggestion replaces (0-based, UTF-16 code units).
replace_to
End of the range of query a suggestion replaces, exclusive.
suggestions
At most 20 suggestions for the cursor.
errors
The problems of the whole query, by position; empty when it is valid.
quick_fixes
One-step corrections of unambiguous technical errors in the query as it is; empty when there are none.
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