def update(self):
if not self.calendar_id:<EOL><INDENT>return False<EOL><DEDENT>url = self.build_url(self._endpoints.get('<STR_LIT>'))<EOL>data = {<EOL>self._cc('<STR_LIT:name>'): self.name,<EOL>self._cc('<STR_LIT>'): self._cc(self.color.value<EOL>if isinstance(self.color, CalendarColor)<EOL>else self.color)<EOL>}<EOL>response = self.con.patch(url, data=data)<EOL>return bool(response)<EOL>
Updates this calendar. Only name and color can be changed.

        :return: Success / Failure
        :rtype: bool