original_docstring: 
      Update or insert new value to a reference set from QRadar service.
      possible arguments:
      - ref_name (Required): The reference name to insert/update a value for.
      - values (Required): Comma separated list. All the values to be inserted/updated.
      - source: An indication of where the data originated. Default is reference data api.
      - date_value: Boolean, specifies if values given are dates or not.
      - range: Range of offenses to return (e.g.: 0-20, 3-5, 3-3).
      - fields: If used, will filter all fields except for the specified ones.
                Use this parameter to specify which fields you would like to get back in the
                response. Fields that are not explicitly named are excluded.
      Args:
          client (Client): QRadar client to perform the API call.
          args (Dict): Demisto args.
  
      Returns:
          CommandResults.
      
docstring: Update or insert new value to a reference set from QRadar service.
  possible arguments:
  ref_name (Required): The reference name to insert/update a value for.
  values (Required): Comma separated list. All the values to be inserted/updated.
  source: An indication of where the data originated. Default is reference data api.
  date_value: Boolean, specifies if values given are dates or not.
  range: Range of offenses to return .
  fields: If used, will filter all fields except for the specified ones.
  Use this parameter to specify which fields you would like to get back in the
  response. Fields that are not explicitly named are excluded.
docstring_tokens: Update or insert new value to a reference set from QRadar service . possible arguments : ref_name ( Required ) : The reference name to insert / update a value for . values ( Required ) : Comma separated list . All the values to be inserted / updated . source : An indication of where the data originated . Default is reference data api . date_value : Boolean specifies if values given are dates or not . range : Range of offenses to return . fields : If used will filter all fields except for the specified ones . Use this parameter to specify which fields you would like to get back in the response . Fields that are not explicitly named are excluded .
code: def qradar_reference_set_value_upsert_command(client: Client, args: Dict) -> CommandResults:
      """
      Update or insert new value to a reference set from QRadar service.
      possible arguments:
      - ref_name (Required): The reference name to insert/update a value for.
      - values (Required): Comma separated list. All the values to be inserted/updated.
      - source: An indication of where the data originated. Default is reference data api.
      - date_value: Boolean, specifies if values given are dates or not.
      - range: Range of offenses to return (e.g.: 0-20, 3-5, 3-3).
      - fields: If used, will filter all fields except for the specified ones.
                Use this parameter to specify which fields you would like to get back in the
                response. Fields that are not explicitly named are excluded.
      Args:
          client (Client): QRadar client to perform the API call.
          args (Dict): Demisto args.
  
      Returns:
          CommandResults.
      """
      ref_name: str = args.get('ref_name', '')
      values: List[str] = argToList(args.get('value', ''))
      if not values:
          raise DemistoException('Value to insert must be given.')
      source = args.get('source')
      date_value = argToBoolean(args.get('date_value', False))
      fields = args.get('fields')
  
      if date_value:
          values = [get_time_parameter(value, epoch_format=True) for value in values]
  
      if len(values) == 1:
          response = client.reference_set_value_upsert(ref_name, values[0], source, fields)
  
      else:
          response = client.indicators_upload(ref_name, values, fields)
  
      outputs = sanitize_outputs(response, REFERENCE_SETS_OLD_NEW_MAP)
  
      return CommandResults(
          readable_output=tableToMarkdown('Reference Update Create', outputs,
                                          ['Name', 'ElementType', 'TimeToLive', 'TimeoutType', 'NumberOfElements',
                                           'CreationTime'], removeNull=True),
          outputs_prefix='QRadar.Reference',
          outputs_key_field='Name',
          outputs=outputs,
          raw_response=response
      )
code_tokens: def qradar_reference_set_value_upsert_command ( client : Client , args : Dict ) -> CommandResults : ref_name : str = args . get ( 'ref_name' , '' ) values : List [ str ] = argToList ( args . get ( 'value' , '' ) ) if not values : raise DemistoException ( 'Value to insert must be given.' ) source = args . get ( 'source' ) date_value = argToBoolean ( args . get ( 'date_value' , False ) ) fields = args . get ( 'fields' ) if date_value : values = [ get_time_parameter ( value , epoch_format = True ) for value in values ] if len ( values ) == 1 : response = client . reference_set_value_upsert ( ref_name , values [ 0 ] , source , fields ) else : response = client . indicators_upload ( ref_name , values , fields ) outputs = sanitize_outputs ( response , REFERENCE_SETS_OLD_NEW_MAP ) return CommandResults ( readable_output = tableToMarkdown ( 'Reference Update Create' , outputs , [ 'Name' , 'ElementType' , 'TimeToLive' , 'TimeoutType' , 'NumberOfElements' , 'CreationTime' ] , removeNull = True ) , outputs_prefix = 'QRadar.Reference' , outputs_key_field = 'Name' , outputs = outputs , raw_response = response )
short_docstring: Update or insert new value to a reference set from QRadar service.
short_docstring_tokens: Update or insert new value to a reference set from QRadar service .
comment: """
      Update or insert new value to a reference set from QRadar service.
      possible arguments:
      - ref_name (Required): The reference name to insert/update a value for.
      - values (Required): Comma separated list. All the values to be inserted/updated.
      - source: An indication of where the data originated. Default is reference data api.
      - date_value: Boolean, specifies if values given are dates or not.
      - range: Range of offenses to return (e.g.: 0-20, 3-5, 3-3).
      - fields: If used, will filter all fields except for the specified ones.
                Use this parameter to specify which fields you would like to get back in the
                response. Fields that are not explicitly named are excluded.
      Args:
          client (Client): QRadar client to perform the API call.
          args (Dict): Demisto args.
  
      Returns:
          CommandResults.
      """