API Reference

Retrieve the CSV of a saved report

Description

This endpoint will execute the query of a saved report and return the data as a CSV string. The ID of the record containing the saved report is used for the reportID path element. Reports are stored in records of type DataSource and ReportView. The list of applicable records can be retrieved from the /records endpoint such as GET /records?$filter=type eq DataSource or type eq ReportView. A filter on the title property should be used to return a particular report.

GET /graph/reports/{reportId}/csv

🚧

Required OAuth Scopes:

graph:read

Parameters

ParameterInTypeRequiredDescription
reportIdpathstringtrueThe unique identifier of the report

Code Samples

curl -X GET https://api.app.wdesk.com/platform/v1/graph/reports/{reportId}/csv  \ 
-H 'Accept: text/csv; charset=UTF-8' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/graph/reports/{reportId}/csv  \ 
Accept:"text/csv; charset=UTF-8" \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/graph/reports/{reportId}/csv" \
 --output-document -  \ 
 --header 'Accept: text/csv; charset=UTF-8' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': 'text/csv; charset=UTF-8',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://api.app.wdesk.com/platform/v1/graph/reports/{reportId}/csv', headers = headers)

print(r.json())

Returns

200 - Success

Returns a CSV string of the requested report.

Example Responses

No example available