def edit(self, **kwargs):
response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(self.id),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>if '<STR_LIT:name>' in response.json():<EOL><INDENT>super(Section, self).set_attributes(response.json())<EOL><DEDENT>return self<EOL>
Edit contents of a target section.

:calls: `PUT /api/v1/sections/:id \
<https://canvas.instructure.com/doc/api/sections.html#method.sections.update>`_

:rtype: :class:`canvasapi.section.Section`