curl --request GET \
--url https://api.alpha-1edtech.ai/powerpath/importExternalTestAssignmentResults \
--header 'Authorization: Bearer <token>'{
"lessonType": "test-out",
"lessonId": "<string>",
"toolProvider": "<string>",
"finalized": true,
"attempt": 123,
"credentials": {
"email": "[email protected]",
"password": "<string>"
},
"assignmentId": "<string>",
"classId": "<string>",
"testUrl": "<string>",
"testId": "<string>"
}Retrieves and stores the results of the external test assignment:
This logic changes depending on the stored “toolProvider” of the lesson:
The actual test results can be retrieved by using the “getAssessmentProgress” endpoint.
Notice this may perform a course enrollment for the student if the lesson is a placement test or test-out, and the respective subject and grade are mapped to the Subject Track with a valid course set. The enrollemnt can be skipped by setting the “skipCourseEnrollment” flag in the makeExternalTestAssignment request.
A ‘Lesson’ in this context is a ComponentResource object which has a Resource object with lessonType = “test-out”, “placement”, or “unit-test” associated with it.
curl --request GET \
--url https://api.alpha-1edtech.ai/powerpath/importExternalTestAssignmentResults \
--header 'Authorization: Bearer <token>'{
"lessonType": "test-out",
"lessonId": "<string>",
"toolProvider": "<string>",
"finalized": true,
"attempt": 123,
"credentials": {
"email": "[email protected]",
"password": "<string>"
},
"assignmentId": "<string>",
"classId": "<string>",
"testUrl": "<string>",
"testId": "<string>"
}The access token received from the authorization server in the OAuth 2.0 flow.
The sourcedId of the student
The sourcedId of the lesson (ComponentResource)
The name of the application
Success
test-out, placement, unit-test The sourcedId of the lesson (ComponentResource)
The tool provider for the lesson (ComponentResource)
Whether the Test has been finalized in the current attempt
The attempt number
The credentials for accessing the assigned test on external tool
Show child attributes
The id of the assignment on external tool for results retrieval
The id of the class on external tool for results retrieval (may be empty for some tools)
The URL of the test on external tool
The id of the test on external tool (may be assignment ID for some tools)