code: def modify_process_summary(self, pid=None, text='', append=False):
          '''
          modify_process_summary(self, pid=None, text='')
  
          Modifies the summary text of the process execution
  
          :Parameters:
          * *key* (`pid`) -- Identifier of an existing process
          * *key* (`text`) -- summary text
          * *append* (`boolean`) -- True to append to summary. False to override it.
  
          '''
          pid = self._get_pid(pid)
  
          if append:
              current_summary =  self.get_process_info(pid).get('summary') or ''
              modified_text = current_summary + '\n' + text
              text = modified_text
  
          request_data = {"id": pid, "data": str(text)}
          return self._call_rest_api('post', '/processes/'+pid+'/summary', data=request_data, error='Failed to update process summary'f modify_process_summary(self, pid=None, text='', append=False):
          '''
          modify_process_summary(self, pid=None, text='')
  
          Modifies the summary text of the process execution
  
          :Parameters:
          * *key* (`pid`) -- Identifier of an existing process
          * *key* (`text`) -- summary text
          * *append* (`boolean`) -- True to append to summary. False to override it.
  
          '''
          pid = self._get_pid(pid)
  
          if append:
              current_summary =  self.get_process_info(pid).get('summary') or ''
              modified_text = current_summary + '\n' + text
              text = modified_text
  
          request_data = {"id": pid, "data": str(text)}
          return self._call_rest_api('post', '/processes/'+pid+'/summary', data=request_data, error='Failed to update process summary')
docs: modify_process_summary(self, pid=None, text='')
  
          Modifies the summary text of the process execution
  
          :Parameters:
          * *key* (`pid`) -- Identifier of an existing process
          * *key* (`text`) -- summary text
          * *append* (`boolean`) -- True to append to summary. False to override it.