uw_canvas/sections.py
def update_section(self, section_id, name, sis_section_id):
        """
        Update a canvas section with the given section id.

        https://canvas.instructure.com/doc/api/sections.html#method.sections.update
        """
        url = SECTIONS_API.format(section_id)
        body = {"course_section": {}}

        if name:
            body["course_section"]["name"] = name

        if sis_section_id:
            body["course_section"]["sis_section_id"] = sis_section_id

        return CanvasSection(data=self._put_resource(url, body))
def update_section(self, section_id, name, sis_section_id):
        url = SECTIONS_API.format(section_id)
        body = {"course_section": {}}

        if name:
            body["course_section"]["name"] = name

        if sis_section_id:
            body["course_section"]["sis_section_id"] = sis_section_id

        return CanvasSection(data=self._put_resource(url, body))
def update_section ( self , section_id , name , sis_section_id ) : url = SECTIONS_API . format ( section_id ) body = { "course_section" : { } } if name : body [ "course_section" ] [ "name" ] = name if sis_section_id : body [ "course_section" ] [ "sis_section_id" ] = sis_section_id return CanvasSection ( data = self . _put_resource ( url , body ) )
Update a canvas section with the given section id.

        https://canvas.instructure.com/doc/api/sections.html#method.sections.update
Update a canvas section with the given section id .