uw_canvas/terms.py
def update_term_overrides(self, sis_term_id, overrides={}):
        """
        Update an existing enrollment term for the passed SIS ID.
        https://canvas.instructure.com/doc/api/enrollment_terms.html#method.terms.update
        """
        if not self._canvas_account_id:
            raise MissingAccountID()

        url = ACCOUNTS_API.format(
            self._canvas_account_id) + "/terms/{}".format(
                self._sis_id(sis_term_id, sis_field='term'))

        body = {'enrollment_term': {'overrides': overrides}}
        return CanvasTerm(data=self._put_resource(url, body))
def update_term_overrides(self, sis_term_id, overrides={}):
        """
        Update an existing enrollment term for the passed SIS ID.
        https://canvas.instructure.com/doc/api/enrollment_terms.html#method.terms.update
        """
        if not self._canvas_account_id:
            raise MissingAccountID()

        url = ACCOUNTS_API.format(
            self._canvas_account_id) + "/terms/{}".format(
                self._sis_id(sis_term_id, sis_field='term'))

        body = {'enrollment_term': {'overrides': overrides}}
        return CanvasTerm(data=self._put_resource(url, body))
def update_term_overrides ( self , sis_term_id , overrides = { } ) : if not self . _canvas_account_id : raise MissingAccountID ( ) url = ACCOUNTS_API . format ( self . _canvas_account_id ) + "/terms/{}" . format ( self . _sis_id ( sis_term_id , sis_field = 'term' ) ) body = { 'enrollment_term' : { 'overrides' : overrides } } return CanvasTerm ( data = self . _put_resource ( url , body ) )
Update an existing enrollment term for the passed SIS ID.
        https://canvas.instructure.com/doc/api/enrollment_terms.html#method.terms.update
Update an existing enrollment term for the passed SIS ID . https : // canvas . instructure . com / doc / api / enrollment_terms . html#method . terms . update