Skip to main content
POST
/
powerpath
/
test-assignments
/
bulk
Create multiple test assignments
curl --request POST \
  --url https://api.alpha-1edtech.ai/powerpath/test-assignments/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "student": "<string>",
      "subject": "Reading",
      "grade": "-1",
      "testName": "<string>"
    }
  ]
}
'
{
  "success": true,
  "results": [
    {
      "assignmentId": "<string>",
      "lessonId": "<string>",
      "resourceId": "<string>"
    }
  ],
  "errors": [
    {
      "row": 123,
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
items
object[]
required

Array of test assignments to create

Minimum array length: 1

Response

All assignments created successfully

success
boolean
required

Whether all assignments were created successfully

results
object[]
required

Array of successfully created test assignments

errors
object[]
required

Array of errors that occurred during processing