Trendsic Platform Service

<back to all web services

ReportExportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/report/export
ReportExportRequest Parameters:
NameParameterData TypeRequiredDescription
FormatbodystringNo
TitlebodystringNo
FileNamebodystringNo
ReportDefinition Parameters:
NameParameterData TypeRequiredDescription
DatasetCodeformstringNo
DimensionsformList<string>No
MeasuresformList<ReportMeasure>No
JoinsformList<string>No
FiltersformstringNo
SortsformList<ReportSort>No
LimitformintNo
ReportMeasure Parameters:
NameParameterData TypeRequiredDescription
FieldCodeformstringNo
AggformstringNo
ReportSort Parameters:
NameParameterData TypeRequiredDescription
FieldCodeformstringNo
DirformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/report/export HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Format":"String","Title":"String","FileName":"String","DatasetCode":"String","Dimensions":["String"],"Measures":[{"FieldCode":"String","Agg":"String"}],"Joins":["String"],"Filters":"String","Sorts":[{"FieldCode":"String","Dir":"String"}],"Limit":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

(byte[])