GET Teacher Sections

Returns list of sections for the provided teacher user ID.

Request URL

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

Parameters

schoolYear intUsually in the form of 2016 - 2017. This can be found with GET School Years. Note: The spaces need to be encoded with %20.
userID intUser ID of the teacher.

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
    }
]