def update(self):
if self._track_changes:<EOL><INDENT>data = self.to_api_data(restrict_keys=self._track_changes)<EOL>if data:<EOL><INDENT>response = self.session.patch(self.build_url('<STR_LIT>'), data=data)<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>self._track_changes.clear()<EOL><DEDENT><DEDENT>if self._font._track_changes:<EOL><INDENT>data = self._font.to_api_data(restrict_keys=self._font._track_changes)<EOL>if data:<EOL><INDENT>response = self.session.patch(self.build_url(self._endpoints.get('<STR_LIT>')), data=data)<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>self._font._track_changes.clear()<EOL><DEDENT><DEDENT>if self._track_background_color:<EOL><INDENT>if self._background_color is None:<EOL><INDENT>url = self.build_url(self._endpoints.get('<STR_LIT>'))<EOL>response = self.session.post(url)<EOL><DEDENT>else:<EOL><INDENT>data = {'<STR_LIT>': self._background_color}<EOL>url = self.build_url(self._endpoints.get('<STR_LIT>'))<EOL>response = self.session.patch(url, data=data)<EOL><DEDENT>if not response:<EOL><INDENT>return False<EOL><DEDENT>self._track_background_color = False<EOL><DEDENT>return True<EOL>
Updates this range format