Forum Discussion

Scooby0344's avatar
Scooby0344
Data Storage
07-19-2022
Solved

Using Rest API to export a widget with filters

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?

 

  • 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.

1 Reply

Replies have been turned off for this discussion
  • HamzaJ's avatar
    HamzaJ
    Data Integration

    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.