Teachers

Teachers

The K12NET API provides a dedicated endpoint for Partners to access teacher information within a specific Organization:


POST https://api.k12net.com/INTCore.Web/api/Partner/Organizations/{organization_id}/Teachers
    
    

Replace {organization_id} with the identifier of the Organization (or school) whose teachers you want to retrieve. The endpoint returns the teaching assignments of the active school year in the Organization's schools.

Capabilities of the Teachers Endpoint:

The fields that can be used in $where and $orderby are listed on the Filtering And Sorting page.

Sample Request for Paging:

Here is an example of a JSON object that can be posted to the endpoint to retrieve a slice of teacher records:


{
    "$skip": 20,
    "$take": 10,
    "$includeTotalCount": true
}
    

The $skip parameter specifies the number of records to skip before returning the results, while $take indicates the number of records to include in the response.

If you set $includeTotalCount to true, the total number of matching records is returned in the response header named TotalCount.

Sample Response:

Each record is one teaching assignment, so a teacher who teaches in two schools appears twice, each time with the related assignment in Assignments.


[
    {
        "ID": "8d7cfa5c-8c91-f111-8fbf-98f2b32a1389",
        "FullName": "Ahmet Demir",
        "FullNameParts": { "First": "Ahmet", "Middle": null, "Last": "Demir", "Suffix": null },
        "NationalID": "12345678901",
        "BirthDate": "1985-09-12T00:00:00",
        "Gender": true,
        "PhoneNumbers": [ "+90 555 000 00 00" ],
        "Emails": [ "[email protected]" ],
        "Assignments": [
            {
                "ID": "907cfa5c-8c91-f111-8fbf-98f2b32a1389",
                "JobFunctionCode": "1000",
                "JobFunctionDescription": "Teacher",
                "TeachingAssignmentCode": "1317",
                "TeachingAssignmentDescription": "German",
                "School": { "ID": "64d249ec-4b35-4f30-a316-d045e105f827", "Name": "Example Middle School", "LocalId": null }
            }
        ]
    }
]
    
FieldDescription
IDUnique identifier of the teacher.
FullName, FullNamePartsFull name of the teacher, and the same name split into First, Middle, Last and Suffix.
NationalID, BirthDate, GenderIdentification and demographic data. Gender is true for male, false for female, null when unknown.
PhoneNumbers, EmailsPhone numbers and e-mail addresses of the teacher.
Assignments[].IDUnique identifier of the teaching assignment.
Assignments[].JobFunctionCode, JobFunctionDescriptionThe staff member's job function.
Assignments[].TeachingAssignmentCode, TeachingAssignmentDescriptionThe branch (subject) the teacher teaches.
Assignments[].SchoolID, Name and LocalId of the school.

Customizable Data Fields:

As with student information, the fields included in the response from the Teachers endpoint are determined by the Organization; fields that are not shared are returned as null or are left out of the response. Responses may also contain the serializer properties $id and $type, which you can ignore.

Design your integration to be flexible and capable of handling varying data structures, and apply proper error handling and data validation so that your application can manage the data provided through this endpoint across different K12NET Organizations.