GitHub user satanic-panic added a comment to the discussion: Filtered Chart
Data via API
Answering my own question because I found the solution. Dosu didn't solve my
issue but pointed me in the right direction. For future reference of anyone
trying to do this like me and not finding any resources online (like I didn't)
the request is as follows:
POST /api/v1/chart/data
Example payload:
{
"datasource": {
"id": 123,
"type": "table"
},
"queries": [
{
"columns": ["col1", "col2"],
"filters": [
{ "col": "col1", "op": "==", "val": 123 }
],
"metrics": [],
"row_limit": 1000
}
],
"result_format": "json",
"result_type": "full"
}
GitHub link:
https://github.com/apache/superset/discussions/34668#discussioncomment-14091439
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]