Report Types
Use the Report Types API to get information about what report types are available in your org. The Report Types API is available in API version 39.0 and later.
Resources for the Report Types API are available at /services/data/<latest API version>/analytics/report-types. You can query each resource with an HTTP method.
You can use either report-types or reportTypes when referring to a report type resource. The two are equivalent.
Note
| Resource | Supported HTTP Method | Description |
|---|---|---|
Report Type List /services/data/<latest API version>/analytics/report-types | GET | Returns a list of available report types. |
Report Type /services/data/<latest API version>/analytics/report-types/<type> | GET | Returns metadata about a specified report type. |
Recently Created Reports /services/data/<latest API version>/analytics/report-types/<report-type-API-name>/recent-reports | GET | Returns a list of recently created reports for a specific report type. |
Recently Used Report Types /services/data/<latest API version>/analytics/report-types/recent/by-user | GET | Returns a list of report types used by reports recently created by the current user. |
Hide and Unhide Report Types /services/data/<latest API version>/analytics/reports/show-hide-report_type | PATCH | Sets the hidden parameter to true or false for a specific report type. |
-
Return a list of report types.
-
Return metadata about a report type.
-
Get the list of report types used in the 50 reports most recently created by the current user.
-
Get the list of recently created reports for a particular report type for the current user or any other users.
-
Update hidden state of report types (
PATCH).