Originality Reports
LTI API for OriginalityReports (Must use JWT access tokens with this API).
Originality reports may be used by external tools providing plagiarism detection services to give an originality score to an assignment submission's file. An originality report has an associated file ID (the file submitted by the student) and an originality score between 0 and 100.
Note that when creating or updating an originality report a tool_setting[resource_type_code]
may be specified as part of the originality report. This parameter should be used if the tool provider wishes to display originality reports as LTI launches.
The value of tool_setting[resource_type_code]
should be a resource_handler's "resource_type" code. Canvas will lookup the resource handler specified and do a launch to the message with the type "basic-lti-launch-request" using its "path". If the optional tool_setting[resource_url]
parameter is provided, Canvas will use this URL instead of the message's path
but will still send all the parameters specified by the message. When using the tool_setting[resource_url]
the tool_setting[resource_type_code]
must also be specified.
A ToolSetting object looks like:
An OriginalityReport object looks like:
Lti::OriginalityReportsApiController#create
POST /api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report
POST /api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report
Scope: url:POST|/api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report
Create a new OriginalityReport for the specified file
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the file being given an originality score. Required if creating a report associated with a file. |
| Required | A number between 0 and 100 representing the measure of the specified file’s originality. |
|
| The URL where the originality report for the specified file may be found. |
|
| The ID of the file within Canvas that contains the originality report for the submitted file provided in the request URL. |
|
| The resource type code of the resource handler Canvas should use for the LTI launch for viewing originality reports. If set Canvas will launch to the message with type ‘basic-lti-launch-request’ in the specified resource handler rather than using the originality_report_url. |
|
| The URL Canvas should launch to when showing an LTI originality report. Note that this value is inferred from the specified resource handler’s message “path” value (See ‘resource_type_code |
|
| May be set to “pending”, “error”, or “scored”. If an originality score is provided a workflow state of “scored” will be inferred. |
|
| A message describing the error. If set, the “workflow_state” will be set to “error.” |
|
| If no ‘file_id |
Returns an OriginalityReport object.
Lti::OriginalityReportsApiController#update
PUT /api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report/:id
PUT /api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report/:id
Scope: url:PUT|/api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report/:id
PUT /api/lti/assignments/:assignment_id/files/:file_id/originality_report
PUT /api/lti/assignments/:assignment_id/files/:file_id/originality_report
Scope: url:PUT|/api/lti/assignments/:assignment_id/files/:file_id/originality_report
Modify an existing originality report. An alternative to this endpoint is to POST the same parameters listed below to the CREATE endpoint.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| A number between 0 and 100 representing the measure of the specified file’s originality. |
|
| The URL where the originality report for the specified file may be found. |
|
| The ID of the file within Canvas that contains the originality report for the submitted file provided in the request URL. |
|
| The resource type code of the resource handler Canvas should use for the LTI launch for viewing originality reports. If set Canvas will launch to the message with type ‘basic-lti-launch-request’ in the specified resource handler rather than using the originality_report_url. |
|
| The URL Canvas should launch to when showing an LTI originality report. Note that this value is inferred from the specified resource handler’s message “path” value (See ‘resource_type_code |
|
| May be set to “pending”, “error”, or “scored”. If an originality score is provided a workflow state of “scored” will be inferred. |
|
| A message describing the error. If set, the “workflow_state” will be set to “error.” |
Returns an OriginalityReport object.
Lti::OriginalityReportsApiController#show
GET /api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report/:id
GET /api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report/:id
Scope: url:GET|/api/lti/assignments/:assignment_id/submissions/:submission_id/originality_report/:id
GET /api/lti/assignments/:assignment_id/files/:file_id/originality_report
GET /api/lti/assignments/:assignment_id/files/:file_id/originality_report
Scope: url:GET|/api/lti/assignments/:assignment_id/files/:file_id/originality_report
Get a single originality report
Returns an OriginalityReport object.
Appendixes
Appendix: Originality Report UI Locations
© 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