Skip to main content
POST
/
powerpath
/
createInternalTest
Create an Internal Test
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"
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Input for creating an internal QTI test

courseId
string
required

The sourcedId of the Course to create the internal test for

lessonType
enum<string>
required

The type of lesson to create

Available options:
powerpath-100,
quiz,
test-out,
placement,
unit-test,
alpha-read-article
testType
string
required
Allowed value: "qti"
qti
object
required
lessonTitle
string

Optional title for the lesson (ComponentResource)

unitTitle
string

Optional title for the unit (CourseComponent)

courseComponentSourcedId
string

Optional sourcedId of existing CourseComponent to reuse

resourceMetadata
null

Additional metadata for the internal test resource

xp
number

The XP value for the resource (for test-out lessons)

grades
enum<string>[]

The grades for the resource (for placement tests)

The grades of the course

Available options:
-1,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
courseIdOnFail
string | null

The courseId to enroll the student in if they fail the placement test (optional)

Response

Success

lessonType
enum<string>
required
Available options:
powerpath-100,
quiz,
test-out,
placement,
unit-test,
alpha-read-article
testType
enum<string>
required
Available options:
qti,
assessment-bank
lessonId
string
required

The sourcedId of the created internal test lesson (ComponentResource)

courseComponentId
string
required

The sourcedId of the component (unit) containing the test

resourceId
string
required

The sourcedId of the main resource (parent for assessment-bank)

childResourceIds
string[]

Array of child resource IDs (only for assessment-bank type)

courseIdOnFail
string | null

The courseId to enroll the student in if they fail the placement test (optional)

grades
enum<string>[]

The grades for the resource (for placement tests)

The grades of the course

Available options:
-1,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13