Skip to main content
POST
/
ims
/
oneroster
/
rostering
/
v1p2
/
classes
/
{classSourcedId}
/
students
Add a student to a Class
curl --request POST \
  --url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/classes/{classSourcedId}/students \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enrollment": {
    "user": {
      "sourcedId": "<string>"
    },
    "primary": "false",
    "beginDate": "2024-01-01",
    "endDate": "2024-01-01"
  }
}
'
{
  "sourcedIdPairs": {
    "suppliedSourcedId": "<string>",
    "allocatedSourcedId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

classSourcedId
string
required

Class sourcedId

Body

application/json
enrollment
object
required

Response

Student successfully enrolled in class

sourcedIdPairs
object
required