Outcome Imports
API for importing outcome data
An OutcomeImportData object looks like:
An OutcomeImport object looks like:
OutcomeImportsApiController#create
POST /api/v1/accounts/:account_id/outcome_imports(/group/:learning_outcome_group_id)
POST /api/v1/accounts/:account_id/outcome_imports(/group/:learning_outcome_group_id)
Scope: url:POST|/api/v1/accounts/:account_id/outcome_imports(/group/:learning_outcome_group_id)
POST /api/v1/courses/:course_id/outcome_imports(/group/:learning_outcome_group_id)
POST /api/v1/courses/:course_id/outcome_imports(/group/:learning_outcome_group_id)
Scope: url:POST|/api/v1/courses/:course_id/outcome_imports(/group/:learning_outcome_group_id)
Import outcomes into Canvas.
For more information on the format that’s expected here, please see the “Outcomes CSV” section in the API docs.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| Choose the data format for reading outcome data. With a standard Canvas install, this option can only be ‘instructure_csv’, and if unprovided, will be assumed to be so. Can be part of the query string. |
|
| There are two ways to post outcome import data - either via a multipart/form-data form-field-style attachment, or via a non-multipart raw post request.
‘attachment’ is required for multipart/form-data style posts. Assumed to be outcome data from a file upload form field named ‘attachment’.
Examples:
If you decide to do a raw post, you can skip the ‘attachment’ argument, but you will then be required to provide a suitable Content-Type header. You are encouraged to also provide the ‘extension’ argument.
Examples:
|
|
| Recommended for raw post request style imports. This field will be used to distinguish between csv and other file format extensions that would usually be provided with the filename in the multipart post request scenario. If not provided, this value will be inferred from the Content-Type, falling back to csv-file format if all else fails. |
Returns an OutcomeImport object.
OutcomeImportsApiController#show
GET /api/v1/accounts/:account_id/outcome_imports/:id
GET /api/v1/accounts/:account_id/outcome_imports/:id
Scope: url:GET|/api/v1/accounts/:account_id/outcome_imports/:id
GET /api/v1/courses/:course_id/outcome_imports/:id
GET /api/v1/courses/:course_id/outcome_imports/:id
Scope: url:GET|/api/v1/courses/:course_id/outcome_imports/:id
Get the status of an already created Outcome import. Pass ‘latest’ for the outcome import id for the latest import.
Returns an OutcomeImport object.
OutcomeImportsApiController#created_group_ids
GET /api/v1/accounts/:account_id/outcome_imports/:id/created_group_ids
GET /api/v1/accounts/:account_id/outcome_imports/:id/created_group_ids
Scope: url:GET|/api/v1/accounts/:account_id/outcome_imports/:id/created_group_ids
GET /api/v1/courses/:course_id/outcome_imports/:id/created_group_ids
GET /api/v1/courses/:course_id/outcome_imports/:id/created_group_ids
Scope: url:GET|/api/v1/courses/:course_id/outcome_imports/:id/created_group_ids
Get the IDs of the outcome groups created after a successful import. Pass ‘latest’ for the outcome import id for the latest import.
© Instructure, Inc. Generated on Wed Nov 6 14:20:08 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated