Account Reports
API for accessing account reports.
A Report object looks like:
A ReportParameters object looks like:
AccountReportsController#available_reports
GET /api/v1/accounts/:account_id/reports
GET /api/v1/accounts/:account_id/reports
Scope: url:GET|/api/v1/accounts/:account_id/reports
Returns a paginated list of reports for the current context.
API response field:
name
The name of the report.
parameters
The parameters will vary for each report
Example Request:
Example Response:
AccountReportsController#create
POST /api/v1/accounts/:account_id/reports/:report
POST /api/v1/accounts/:account_id/reports/:report
Scope: url:POST|/api/v1/accounts/:account_id/reports/:report
Generates a report instance for the account. Note that “report” in the request must match one of the available report names. To fetch a list of available report names and parameters for each report (including whether or not those parameters are required), see List Available Reports.
Request Parameters:
parameters
string
The parameters will vary for each report. To fetch a list of available parameters for each report, see List Available Reports. A few example parameters have been provided below. Note that the example parameters provided below may not be valid for every report.
parameters[skip_message]
boolean
If true, no message will be sent to the user upon completion of the report.
parameters[course_id]
integer
The id of the course to report on. Note: this parameter has been listed to serve as an example and may not be valid for every report.
parameters[users]
boolean
If true, user data will be included. If false, user data will be omitted. Note: this parameter has been listed to serve as an example and may not be valid for every report.
Example Request:
Returns a Report object.
AccountReportsController#index
GET /api/v1/accounts/:account_id/reports/:report
GET /api/v1/accounts/:account_id/reports/:report
Scope: url:GET|/api/v1/accounts/:account_id/reports/:report
Shows all reports that have been run for the account of a specific type.
Example Request:
Returns a list of Report objects.
GET /api/v1/accounts/:account_id/reports/:report/:id
GET /api/v1/accounts/:account_id/reports/:report/:id
Scope: url:GET|/api/v1/accounts/:account_id/reports/:report/:id
Returns the status of a report.
Example Request:
Returns a Report object.
AccountReportsController#destroy
DELETE /api/v1/accounts/:account_id/reports/:report/:id
DELETE /api/v1/accounts/:account_id/reports/:report/:id
Scope: url:DELETE|/api/v1/accounts/:account_id/reports/:report/:id
Deletes a generated report instance.
Example Request:
Returns a Report object.
AccountReportsController#abort
PUT /api/v1/accounts/:account_id/reports/:report/:id/abort
PUT /api/v1/accounts/:account_id/reports/:report/:id/abort
Scope: url:PUT|/api/v1/accounts/:account_id/reports/:report/:id/abort
Abort a report in progress
Example Request:
Returns a Report object.
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated