Skip to main content
POST
/
powerpath
/
createExternalTestOut
Create an External TestOut
curl --request POST \
  --url https://api.alpha-1edtech.ai/powerpath/createExternalTestOut \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "courseId": "<string>",
  "toolProvider": "edulastic",
  "grades": [
    "-1"
  ],
  "lessonType": "<string>",
  "xp": 123,
  "lessonTitle": "<string>",
  "launchUrl": "<string>",
  "unitTitle": "<string>",
  "courseComponentSourcedId": "<string>",
  "vendorId": "<string>",
  "description": "<string>",
  "resourceMetadata": "<unknown>"
}
'
{
  "lessonType": "powerpath-100",
  "lessonId": "<string>",
  "courseComponentId": "<string>",
  "resourceId": "<string>",
  "toolProvider": "<string>",
  "launchUrl": "<string>",
  "vendorId": "<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 external test-out lesson

courseId
string
required

The sourcedId of the Course to create the external test for

toolProvider
enum<string>
required

The type of external service (e.g.: 'edulastic')

Available options:
edulastic,
mastery-track
grades
enum<string>[]
required

The grades for the resource

The grades of the course

Available options:
-1,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
lessonType
string
required
Allowed value: "test-out"
xp
number
required

The XP value for the resource

lessonTitle
string

The title of the external test reference

launchUrl
string

The URL to the external test system (e.g., Edulastic, QTI, etc.)

unitTitle
string

The title of the unit containing the external test

courseComponentSourcedId
string

The sourcedId of an existing CourseComponent (unit) for the test. If not provided, a new unit will be created.

vendorId
string

The ID of the test in the spreadsheet

description
string

Description of the external test that will be added to the Resource entity's metadata

resourceMetadata
null

Additional metadata for the external test resource

Response

Success

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

The sourcedId of the created external test reference (ComponentResource)

courseComponentId
string
required

The sourcedId of the component (unit) containing the test

resourceId
string
required

The sourcedId of the resource representing the external test

toolProvider
string
required

The tool provider id

launchUrl
string

The URL to the external test system

vendorId
string

The ID of the test in the spreadsheet

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

The grades of the course

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