cancel
Showing results for 
Search instead for 
Did you mean: 

Using Rest API to export a widget with filters

Scooby0344
7 - Data Storage
7 - Data Storage

Hello,

I can't figure out how to apply a filter to the export widget png REST API endpoint.  I.E  /dashboards/{dashboardId}/widgets/{id}/export/png.

When looking at the request parameters for that endpoint, I'm only seeing authorization, dashboardId, id, width and height.  How do I apply a filter?

Scooby0344_0-1658265319958.png

 

1 ACCEPTED SOLUTION

HamzaJ
10 - ETL
10 - ETL

Hi @Scooby0344 

You cannot change the filters with that specific endpoint. You first need to update the dashboard/widget with the PATCH-request. With this request you can change/set the required filters. After which you can use the PNG-endpoint to export the widget.

It will be a 2-step process in your case.

View solution in original post

1 REPLY 1

HamzaJ
10 - ETL
10 - ETL

Hi @Scooby0344 

You cannot change the filters with that specific endpoint. You first need to update the dashboard/widget with the PATCH-request. With this request you can change/set the required filters. After which you can use the PNG-endpoint to export the widget.

It will be a 2-step process in your case.