Create Student User
Create a new student user account and assign it to one or more classes and cohorts.
POST
/students
curl \
-X POST https://connect.century.tech/api/v1/students \
-H "Content-Type: application/json" \
-d '{"user":{"firstName":"John","lastName":"Doe","username":"john_doe","email":"john_doe@example.com","password":"string","upn":"Y89421121401A","externalId":"External_ID_123","gender":"male","dateOfBirth":"2010-07-01"},"classIds":["c81fd38c-03f6-4b68-8720-84a7233e89de"],"cohortIds":["c334f818-0281-4f47-855a-3a3d0e356cfd"]}'
Request examples
{
"user": {
"firstName": "John",
"lastName": "Doe",
"username": "john_doe",
"email": "john_doe@example.com",
"password": "string",
"upn": "Y89421121401A",
"externalId": "External_ID_123",
"gender": "male",
"dateOfBirth": "2010-07-01"
},
"classIds": [
"c81fd38c-03f6-4b68-8720-84a7233e89de"
],
"cohortIds": [
"c334f818-0281-4f47-855a-3a3d0e356cfd"
]
}
Response examples (201)
{
"user": {
"upn": "Y89421121401A",
"roles": [
"student"
],
"emails": [
"john.doe@email.com"
],
"gender": "male",
"userId": "68f06c66-702a-4c26-b8c5-b6dc4f81f25d",
"fullName": "John Doe",
"lastName": "Doe",
"username": "john_doe",
"createdAt": "2024-01-01T12:00:00Z",
"firstName": "John",
"updatedAt": "2024-01-01T12:00:00Z",
"externalId": "External_ID_123",
"dateOfBirth": "2010-07-01"
}
}