Operations to create, run, and access Reports covering Usage and other data from a ShareFile account
GET https://account.sf-api.com/sf/v3/Reports
Returns all the reports configured for the current account. By expanding the Records property, a list of all ReportRecords can be accessed as well.
Returns: Reports for current account
GET https://account.sf-api.com/sf/v3/Reports(id)
Returns a single report specified by id. The Records property is expandable.
| id | String |
Returns: Single Report
GET https://account.sf-api.com/sf/v3/Reports/Recent?maxReports=10
Returns the most recent reports run for the current account. 10 reports are returned unless otherwise specified.
| maxReports | Int32 |
Returns: List of reports
GET https://account.sf-api.com/sf/v3/Reports/Recurring
Returns all recurring reports for the current account.
Returns: List of reports
GET https://account.sf-api.com/sf/v3/Reports/Record(id)
Returns a single record.
| id | String |
Returns: Single Record
GET https://account.sf-api.com/sf/v3/Reports(id)/Records
Returns all records for a single report.
| id | String |
Returns: Records for a Report
POST https://account.sf-api.com/sf/v3/Reports?runOnCreate=false
{
"Title": "Usage Report",
"ReportType": "Activity",
"ActivityTypes": "Login,Upload,Download,View",
"ObjectType": "Account",
"ObjectId": "accountId",
"DateOption": "Last30Days",
"SaveFormat": "Excel"
}
Creates a new Report. The sample above is for an Account Activity Report. For more options please refer to the Report model documentation.
| report | Report | |
| runOnCreate | Boolean | Whether this report should run on creation |
Returns: Created Report
PATCH https://account.sf-api.com/sf/v3/Reports
{
"IsRecurring":false,
"IsScheduled":false,
"Frequency": "Once"
}
Updates an existing report
| report | Report |
Returns: the updated report
DELETE https://account.sf-api.com/sf/v3/Reports(id)
Removes a report from the system
| id | String |
GET https://account.sf-api.com/sf/v3/Reports(id)/Run
Run a report and get the run id.
Returns: ReportRecord
POST https://account.sf-api.com/sf/v3/Reports(reportId)/Preview
| reportId | String | Report ID |
GET https://account.sf-api.com/sf/v3/Reports/Records(id)/GetJsonData
Get the JSON data for a report
| id | String |
Returns: JSON Formatted Report Results
POST https://account.sf-api.com/sf/v3/Reports(reportId)/Move?folderId=folderId
| reportId | String | Report ID |
| folderId | String | Target folder ID |
GET https://account.sf-api.com/sf/v3/Reports/Records(id)/DownloadData?getSignedUrl=false
Download spreadsheet data for a report. If parameter "getSigndedUrl" is true, this endpoint returns a Download Specification object with a "url" parameter, which will point to the file's location
| id | String | |
| getSignedUrl | Boolean | Used to specify whether or not to get a download specification |
Returns: Excel Formatted Report Results or Download Specification
GET https://account.sf-api.com/sf/v3/Reports/Records(id)/DownloadData?token=123
| id | String | |
| token | String | Token from call to Reports/Records(id)/DownloadData?getSignedUrl=true |
Returns: Excel Formatted Report Results