Create Teacher User
Create a new teacher user account and assign it to one or more class (as a teacher).
POST
/teachers
curl \
-X POST https://connect.century.tech/api/v1/teachers \
-H "Content-Type: application/json" \
-d '{"user":{"firstName":"John","lastName":"Doe","username":"john_doe","email":"hello@example.com","password":"string","externalId":"External_ID_123"},"classIds":["c81fd38c-03f6-4b68-8720-84a7233e89de"]}'
Request examples
{
"user": {
"firstName": "John",
"lastName": "Doe",
"username": "john_doe",
"email": "hello@example.com",
"password": "string",
"externalId": "External_ID_123"
},
"classIds": [
"c81fd38c-03f6-4b68-8720-84a7233e89de"
]
}
Response examples (201)
{
"user": {
"upn": "Y89421121401A",
"roles": [
"teacher"
],
"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"
}
}