curl --request POST \
--url https://api.alpha-1edtech.ai/powerpath/createInternalTest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"courseId": "<string>",
"lessonType": "powerpath-100",
"testType": "<string>",
"qti": {
"url": "<string>",
"title": "<string>",
"metadata": {}
},
"lessonTitle": "<string>",
"unitTitle": "<string>",
"courseComponentSourcedId": "<string>",
"resourceMetadata": "<unknown>",
"xp": 123,
"grades": [
"-1"
],
"courseIdOnFail": "<string>"
}
'{
"lessonType": "powerpath-100",
"testType": "qti",
"lessonId": "<string>",
"courseComponentId": "<string>",
"resourceId": "<string>",
"childResourceIds": [
"<string>"
],
"courseIdOnFail": "<string>",
"grades": [
"3"
]
}Creates or updates a ComponentResource to act as an internal test lesson in a course. This allows creating tests using internal QTI resources or assessment banks with multiple QTI resources.
The endpoint creates or updates (if they already exist) the following entities:
Supports two test types:
For test-out and placement lessons, this will update existing tests of the same type. For other lesson types (quiz, unit-test, pp-100), it will create new lessons in the course structure.
A ‘Lesson’ in this context is a ComponentResource object which has a Resource object associated with it.
curl --request POST \
--url https://api.alpha-1edtech.ai/powerpath/createInternalTest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"courseId": "<string>",
"lessonType": "powerpath-100",
"testType": "<string>",
"qti": {
"url": "<string>",
"title": "<string>",
"metadata": {}
},
"lessonTitle": "<string>",
"unitTitle": "<string>",
"courseComponentSourcedId": "<string>",
"resourceMetadata": "<unknown>",
"xp": 123,
"grades": [
"-1"
],
"courseIdOnFail": "<string>"
}
'{
"lessonType": "powerpath-100",
"testType": "qti",
"lessonId": "<string>",
"courseComponentId": "<string>",
"resourceId": "<string>",
"childResourceIds": [
"<string>"
],
"courseIdOnFail": "<string>",
"grades": [
"3"
]
}The access token received from the authorization server in the OAuth 2.0 flow.
Input for creating an internal QTI test
The sourcedId of the Course to create the internal test for
The type of lesson to create
powerpath-100, quiz, test-out, placement, unit-test, alpha-read-article "qti"Show child attributes
Optional title for the lesson (ComponentResource)
Optional title for the unit (CourseComponent)
Optional sourcedId of existing CourseComponent to reuse
Additional metadata for the internal test resource
The XP value for the resource (for test-out lessons)
The grades for the resource (for placement tests)
The grades of the course
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 The courseId to enroll the student in if they fail the placement test (optional)
Success
powerpath-100, quiz, test-out, placement, unit-test, alpha-read-article qti, assessment-bank The sourcedId of the created internal test lesson (ComponentResource)
The sourcedId of the component (unit) containing the test
The sourcedId of the main resource (parent for assessment-bank)
Array of child resource IDs (only for assessment-bank type)
The courseId to enroll the student in if they fail the placement test (optional)
The grades for the resource (for placement tests)
The grades of the course
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13