GET Teacher Sections

Returns list of sections for the provided teacher userID. Sections are instances of courses that occur on a schedule.

Request URL

https://{school}.myschoolapp.com/api/academics/TeacherSection?t={token}[&schoolYear][&userID]

Parameters

schoolYear int

The school year to return sections for. Entered in the format of 2016 - 2017. The schoolYear corresponds to SchoolYearLabel in the GET School Years call.

Note: The spaces need to be encoded with %20.

userID intThe ID of the teacher whose course sections should be returned in the call. The userID is returned in the GET Users call.

Response 200

Returned when the operation succeeds. NOTE: Each section has a section ID (id) and a LeadSectionId. Sections with the same lead section ID are classes that last for more than one term.


[
    {
        "Id": 1506414,
        "ParentSectionId": 0,
        "OfferingId": 0,
        "LeadSectionId": 1506414,
        "Name": "Advanced Biology",
        "Duration": {
            "DurationId": 0,
            "DurationDescription": null,
            "DurationName": null,
            "SortOrder": 0,
            "NumDaysDefault": null,
            "PrevYearEquivalent": null,
            "SeasonId": null,
            "LevelNum": 0,
            "SchoolYear": null,
            "SchoolYearLabel": null,
            "Name": "1st",
            "Id": 38472,
            "OfferingType": 0,
            "BeginDate": null,
            "EndDate": null,
            "DaysBeyondTerm": 0,
            "ShortDescription": null,
            "InsertDate": null,
            "LastModifyDate": null,
            "LastModifyUserId": null,
            "vendor_external_id": null
        },
        "SectionIdentifier": "1",
        "CourseCode": "6452",
        "RoomId": 0,
        "BlockId": 0,
        "SchoolYearLabel": null,
        "InsertDate": null,
        "LastModifyDate": null,
        "LastModifyUserId": null,
        "vendor_external_id": null
    },
    {
        "Id": 1506415,
        "ParentSectionId": 0,
        "OfferingId": 0,
        "LeadSectionId": 1506414,
        "Name": "Advanced Biology",
        "Duration": {
            "DurationId": 0,
            "DurationDescription": null,
            "DurationName": null,
            "SortOrder": 0,
            "NumDaysDefault": null,
            "PrevYearEquivalent": null,
            "SeasonId": null,
            "LevelNum": 0,
            "SchoolYear": null,
            "SchoolYearLabel": null,
            "Name": "2nd",
            "Id": 38473,
            "OfferingType": 0,
            "BeginDate": null,
            "EndDate": null,
            "DaysBeyondTerm": 0,
            "ShortDescription": null,
            "InsertDate": null,
            "LastModifyDate": null,
            "LastModifyUserId": null,
            "vendor_external_id": null
        },
        "SectionIdentifier": "1",
        "CourseCode": "6452",
        "RoomId": 0,
        "BlockId": 0,
        "SchoolYearLabel": null,
        "InsertDate": null,
        "LastModifyDate": null,
        "LastModifyUserId": null,
        "vendor_external_id": null
    }
]

Comments

Have a question? See a problem with our docs? Want to engage with the ON API team? Please visit us on the ON API Community!