Skip to main content
POST
/
powerpath
/
test-assignments
/
import
Import test assignments from Google Sheets
curl --request POST \
  --url https://api.alpha-1edtech.ai/powerpath/test-assignments/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "spreadsheetUrl": "<string>",
  "sheet": "<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
spreadsheetUrl
string<uri>
required

Publicly readable Google Sheets URL (Anyone with link)

sheet
string
required

The Sheet/tab name to read (case-sensitive in Sheets)

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