Skip to main content
Solved

[Dashboard API] Refresh the results from an existing chart


Hello.

I use dashboard api to get the data in a chart in my amplitude workplace. 

One chart displays weekly active users, but when I access the chart using dashboard rest api, it did not refresh the data. Mostly, it sends the same set of data for more than two hours.

Is there any way to refresh the data set when I call the api? 

Always thanks for you help.

Best answer by Saish Redkar

Hey @seunglee_bomapp 

I haven’t come across any specific refresh functionality in the Dashboard API documentation.

From what I understand, if your existing chart is between two specific dates, then the API call result should not change.

If it’s for “Last X weeks”, then there could be some caching delay possible. You might want to hit refresh on this existing chart in the UI and then call the API on that chart to see if that helps.

View original
Did this topic help you find an answer to your question?

2 replies

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1377 replies
  • Answer
  • April 8, 2022

Hey @seunglee_bomapp 

I haven’t come across any specific refresh functionality in the Dashboard API documentation.

From what I understand, if your existing chart is between two specific dates, then the API call result should not change.

If it’s for “Last X weeks”, then there could be some caching delay possible. You might want to hit refresh on this existing chart in the UI and then call the API on that chart to see if that helps.


Denis Holmes
Team Member
Forum|alt.badge.img+8
  • Team Member
  • 448 replies
  • April 11, 2022

I agree with @Saish Redkar , @seunglee_bomapp . If you wish, you can post the URL to the chart here and you can mention what you were hoping to get returned versus what did and I can look into it. Sometimes there might be caching delays but as long as you refresh in the UI too, there should not be any major delays. I hope this helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings