Data and Report APIs
Hi there,
I need liveboard data after I change the filers. I am trying to fetch the liveboard data using REST API v2 (
api/rest/2.0/metadata/liveboard/data
). I call the API in onFilterChanged
callback.
The request is send on every filter change but I always receive the original data (no filters applied).
In the docs you use createFormDataObjectWith
to build the request body
Could you please let me what this function should do? What body should I pass?
In the same doscs you say to pass the transient_pinboard_content
and than in the example you use transient_content
. Which one is correct?
This is the code I have:
Data and Report APIs
Data and Report APIs
9 Replies
Hi @Adrian you will have to save the changes after changing the filter and then make the API call to get the updated data.
I can see in the documentation that there is a way of fetching the data for unsaved liveboard. It says "To download or retrieve a Liveboard with unsaved changes...". Or maybe I don't understand that correctly?
Liveboard data API
The liveboard data API API allows you to query a pinboard and its visualizations
I see. Let me check this internally and get back to you on this.
cc: @shikharTS
It looks like we have some bug around this, you should be able to download liveboard data with unsaved changes through API. Let me follow up internally and check this for you.
Any update on this?
Hey sorry, so there is some gap in the documentation here, here is a code which is working for me:
Can you check if this works for you
It is working, thank you.
It didn't because I was passing
transient_content: JSON.stringify(transientPinboardContent)
as a payload instead of transient_content: JSON.stringify(transientPinboardContent.data)
.
The documentation for "Liveboard data with unsaved changes" is incorrect in 2 places. Now I know how it works but worth fixing the docs so you won't have to assist other users with that.
Thanks a lot for your help!Data and Report APIs
Data and Report APIs
Yes I have raised an internal ticket to get it corrected. Thanks