def update_case_task(self, task):
req = self.url + "<STR_LIT>".format(task.id)<EOL>update_keys = [<EOL>'<STR_LIT:title>', '<STR_LIT:description>', '<STR_LIT:status>', '<STR_LIT>', '<STR_LIT:user>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'<EOL>]<EOL>data = {k: v for k, v in task.__dict__.items() if k in update_keys}<EOL>try:<EOL><INDENT>return requests.patch(req, headers={'<STR_LIT:Content-Type>': '<STR_LIT:application/json>'}, json=data,<EOL>proxies=self.proxies, auth=self.auth, verify=self.cert)<EOL><DEDENT>except requests.exceptions.RequestException as e:<EOL><INDENT>raise CaseTaskException("<STR_LIT>".format(e))<EOL><DEDENT>
:Updates TheHive Task
:param case: The task to update. The task's `id` determines which Task to update.
:return: