Solved

Export Dashboard via rest api

  • 13 February 2023
  • 1 reply
  • 76 views

  • Participating Frequently
  • 5 replies

Good one every one,
Can any1 spot which is the problem on the following code?, trying to test how GoodData exports a dashboard to a PDF.

 

def post_request(url, data):
response = requests.post(
url,
data=data,
headers={'Authorization': 'Bearer ' + auth_token,
'Content-type': 'application/json'}
, timeout=30
)

result = post_request(
HOST_URL + '/api/v1/actions/workspaces/' + WORKSPACE_ID + '/export/visual',
data={
"dashboardId": DASHBOARD_ID,
"fileName": "export_test_01",
"metadata": {}
}
)

 

it's returning No API path found that matches request.

 

Just in case some1 is wondering, token is good as I'm able to retrieve from endpoint '/api/v1/entities/workspaces' the workspaces, but when trying to perform the post above it's not working.

 

 

icon

Best answer by Moises Morales 13 February 2023, 12:33

View original

1 reply

Userlevel 3

Hi Martin, we have answered your question in our GoodData Slack Community > https://gooddataconnect.slack.com/archives/C01P7PBJFLH/p1676281668343699

 

-Moises

Reply