PUT api/InstructorSections/PutParentSection
Update ParentSectionId to the list of sectionIds. ParentSectionId is used to group sections with the same assignments as one single admnistrative unit within the course. For example, BIO 101 has 2 lectures and 3 recitations each = 8 sections in total, but they all have the same Assignments. By updating the ParentSectionId of all 8 sections with SectionId of 1, all students can have one "Parent Section" to look up ParentSectionId may or maynot be included in Sectionids. Assignments from. * Parent Section can be from different courses due to cross-registration: eg. BIO 101 and ECOL 101 are taught by same professor, have the same assignments etc. If ParentSectionId is from BIOL 101, students of ECOL 101 can use ParentSectionId to look up assignments, but SectionIds should be used for things like enrollment and schedule
Request Information
URI Parameters
None.
Body Parameters
PutParentSectionDtoName | Description | Type | Additional information |
---|---|---|---|
ParentSectionId | integer |
Required |
|
SectionIds | Collection of integer |
Required |
Request Formats
application/json, text/json
{ "ParentSectionId": 1, "SectionIds": [ 1, 2 ] }
application/xml, text/xml
<PutParentSectionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.InstructorNs"> <ParentSectionId>1</ParentSectionId> <SectionIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </SectionIds> </PutParentSectionDto>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |