I was running call for all dashboards <https://rep...
# gooddata-cloud
d
I was running call for all dashboards https://reporting.laivly.cloud/api/v1/entities/workspaces/{customer}/analyticalDashboards/ running into two issues 1. its not showing all dashboards in the space 2. can't find filters used in the dashboards in the results <- see which filters we are using without visually checking one by one
j
Hi Doug, 1. This would be most probably dependent on the permission which you have in the specific Dashboards. Can you please double-check if the Dashboards are shared with the user who is calling the API? 2. Please let me double-check this internally. I’ll get back to you with more info.
d
1. I'm the user, i can see them. So I should see them in the results 2. Thanks
m
Hello Doug, unfortunately I am unable to reproduce this, would it be possible to know how you are making the call? Also, are you getting the same result in the browser? It may be possible the API key you are using to make the call was generated by a user that does not share the same permissions are your user
d
I'm sorry what were you not able to reproduce? I have 20 dashboards listed in the response, but there are 31? Did you get 31? Did you cross reference them? I used both Insomnia and python. Nope I created the API Key
m
As suggested via our internal conversation, the issue was fixed by adding ?size=40 to the endpoint; Regarding the second question, the filter context details can be found via the endpoint https://your_hostname/api/v1/entities/workspaces/workspace_ID/filterContexts/ID as documented here https://www.gooddata.com/docs/cloud/api-and-sdk/api/api_reference_all/#operation/getEntity@FilterContexts
m
Just a note - I belive that for the filterContexts - it might be possible to get the definition of filtercontexts within the same API call. They will not be “in place” but the API call will return definition of the used filtercontexts if you add
&include=filterContexts
to URL of that API call. It should work also with some other objects.