GET https://api.bentley.com/library/components/analytics/download?startDate={startDate}&endDate={endDate}
Retrieves components analytics information as csv downloadable file from user's organization context.
Response contains 'Content-Disposition' header containing name of the file to be downloaded. Query parameters 'startDate' and 'endDate' specify the period for which analytics should be downloaded, these are required parameters and must be in this format yyyy-MM-dd'T'HH:mm:ss.fff'Z'.
User must be an Organization Administrator for the Organization or have View Analytics permission assigned at the organization level.
An Organization Administrator must have at least one of the following roles assigned in User Management: Account Administrator, Co-Administrator, or CONNECT Services Administrator. For more information about User Management please visit our Bentley Communities Licensing, Cloud, and Web Services wiki page.
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
json
HeaderNotFound
{"error":{"code":"HeaderNotFound","message":"Header Authorization was not found in the request. Access denied."}}
{"error":{"code":"InvalidDownloadAnalyticsRequest","message":"Cannot perform operation.","details":[{"code":"MissingRequiredParameter","message":"Required parameter is missing.","target":"startDate"},{"code":"MissingRequiredParameter","message":"Required parameter is missing.","target":"endDate"},{"code":"InvalidValue","message":"Parameter 'startDate' format is incorrect, valid format is yyyy-MM-dd'T'HH:mm:ss.fff'Z'.","target":"startDate"},{"code":"InvalidValue","message":"Parameter 'endDate' format is incorrect, valid format is yyyy-MM-dd'T'HH:mm:ss.fff'Z'.","target":"endDate"}]}}
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.