-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't show simple results API usage examples for parameterized queries #3815
Comments
Does your query use parameters? |
Thankyou for your reply! Now I know why this problem happened. and How to use the query API with parameters, is there anything like api document? Sorry for the inconvenience. |
@gggooo if you want to execute a query with parameters using the API, you should POST to {
"parameters": {
"param1": 123,
"param2": 456
}
} If you're trying to embed a visualization with parameters, make sure none of your parameters are textual params and that your code is up-to-date, as this feature was released not long ago. |
@rauchy Thankyou for your reply! I will try to use it, thanks! |
@gggooo I reopened your issue and updated the description to reflect a possible solution. Thank you for bringing this to our attention. |
@rauchy can you please share me your postman collection or else a guide in notes pls |
@gggooo I don't use Postman that much, but here's the simplest curl command you can run which demonstrates this:
Does this help? |
When you open the API Key dialog for a query, we show results API usage examples:
These examples will not work in the case of a parameterized query. We should at least replace the examples with a message explaining this or preferably show something along the lines of @rauchy's comment.
The text was updated successfully, but these errors were encountered: