dosubot[bot] commented on issue #30900:
URL: https://github.com/apache/superset/issues/30900#issuecomment-2473024227
<!-- Answer -->
You can add `dashboard_id` and `extra_filters` as optional fields in the
JSON payload for the `/warm_up_cache` endpoint. The JSON payload should include
these fields along with the required fields `db_name` and `table_name`. Here's
an example of how the JSON payload might look:
```json
{
"db_name": "your_database_name",
"table_name": "your_table_name",
"dashboard_id": "your_dashboard_id", // Optional
"extra_filters": { // Optional
"filter_key": "filter_value"
}
}
```
These fields are accessed in the code using `body.get("dashboard_id")` and
`body.get("extra_filters")`, indicating that they are optional
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/datasets/api.py)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]