code: def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_name, rule_id):
          
          route_values = {}
          if process_id is not None:
              route_values['processId'] = self._serialize.url('process_id', process_id, 'str')
          if wit_ref_name is not None:
              route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str')
          if rule_id is not None:
              route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str')
          content = self._serialize.body(process_rule, 'UpdateProcessRuleRequest')
          response = self._send(http_method='PUT',
                                location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3',
                                version='5.0-preview.2',
                                route_values=route_values,
                                content=content)
          return self._deserialize('ProcessRule', response)
docs: UpdateProcessWorkItemTypeRule.
          [Preview API] Updates a rule in the work item type of the process.
          :param :class:`<UpdateProcessRuleRequest> <azure.devops.v5_0.work_item_tracking_process.models.UpdateProcessRuleRequest>` process_rule:
          :param str process_id: The ID of the process
          :param str wit_ref_name: The reference name of the work item type
          :param str rule_id: The ID of the rule
          :rtype: :class:`<ProcessRule> <azure.devops.v5_0.work_item_tracking_process.models.ProcessRule>`