POST api/teachers
Request Information
URI Parameters
None.
Body Parameters
TeacherViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
Required Matching regular expression pattern: ^([\w\.\-']+)@([\w\.\-]+)((\.(\w){2,3})+)$ |
||
| Honorific | string |
Required |
|
| StateId | integer |
Required |
|
| StandardTypeId | integer |
Required |
|
| GradeLevelId | integer |
None. |
|
| PrimarySubjectId | integer |
None. |
|
| SurveyReferralTypeId | integer |
None. |
|
| Password | string |
Required Data type: Password Matching regular expression pattern: ^(?=.*[A-Za-z])(?=.*\d).{6,}$ String length: inclusive between 6 and 100 |
|
| ConfirmPassword | string |
Required Data type: Password |
|
| FirstName | string |
Required |
|
| LastName | string |
Required |
|
| ForcePasswordChange | boolean |
None. |
|
| IsThroughAccountAdmin | boolean |
None. |
|
| AccountId | integer |
None. |
|
| ErrorId | integer |
None. |
|
| HasTeacherStudentLink | boolean |
None. |
|
| IsAccountAdmin | boolean |
None. |
|
| CreatedOn | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"email": "sample string 1",
"honorific": "sample string 2",
"stateId": 3,
"standardTypeId": 4,
"gradeLevelId": 1,
"primarySubjectId": 1,
"surveyReferralTypeId": 1,
"password": "sample string 5",
"confirmPassword": "sample string 6",
"firstName": "sample string 7",
"lastName": "sample string 8",
"forcePasswordChange": true,
"isThroughAccountAdmin": true,
"accountId": 1,
"errorId": 1,
"hasTeacherStudentLink": true,
"isAccountAdmin": true,
"createdOn": "2025-11-06T08:31:31.6577852Z"
}
application/xml, text/xml
Sample:
<TeacherViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OHS.TLMClassroomResponder.WebAPI.Models.ViewModels"> <AccountId>1</AccountId> <ConfirmPassword>sample string 6</ConfirmPassword> <CreatedOn>2025-11-06T03:31:31.6577852-05:00</CreatedOn> <ErrorId>1</ErrorId> <FirstName>sample string 7</FirstName> <ForcePasswordChange>true</ForcePasswordChange> <HasTeacherStudentLink>true</HasTeacherStudentLink> <IsAccountAdmin>true</IsAccountAdmin> <IsThroughAccountAdmin>true</IsThroughAccountAdmin> <LastName>sample string 8</LastName> <Password>sample string 5</Password> <Email>sample string 1</Email> <GradeLevelId>1</GradeLevelId> <Honorific>sample string 2</Honorific> <PrimarySubjectId>1</PrimarySubjectId> <StandardTypeId>4</StandardTypeId> <StateId>3</StateId> <SurveyReferralTypeId>1</SurveyReferralTypeId> </TeacherViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.