| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/report/export |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Format | body | string | No | |
| Title | body | string | No | |
| FileName | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DatasetCode | form | string | No | |
| Dimensions | form | List<string> | No | |
| Measures | form | List<ReportMeasure> | No | |
| Joins | form | List<string> | No | |
| Filters | form | string | No | |
| Sorts | form | List<ReportSort> | No | |
| Limit | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FieldCode | form | string | No | |
| Agg | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FieldCode | form | string | No | |
| Dir | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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[])