lib/ibm_watson/compare_comply_v1.rb
def add_feedback(feedback_data:, user_id: nil, comment: nil)
      raise ArgumentError.new("feedback_data must be provided") if feedback_data.nil?

      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("compare-comply", "V1", "add_feedback")
      headers.merge!(sdk_headers)

      params = {
        "version" => @version
      }

      data = {
        "feedback_data" => feedback_data,
        "user_id" => user_id,
        "comment" => comment
      }

      method_url = "/v1/feedback"

      response = request(
        method: "POST",
        url: method_url,
        headers: headers,
        params: params,
        json: data,
        accept_json: true
      )
      response
    end
def add_feedback(feedback_data:, user_id: nil, comment: nil)
      raise ArgumentError.new("feedback_data must be provided") if feedback_data.nil?

      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("compare-comply", "V1", "add_feedback")
      headers.merge!(sdk_headers)

      params = {
        "version" => @version
      }

      data = {
        "feedback_data" => feedback_data,
        "user_id" => user_id,
        "comment" => comment
      }

      method_url = "/v1/feedback"

      response = request(
        method: "POST",
        url: method_url,
        headers: headers,
        params: params,
        json: data,
        accept_json: true
      )
      response
    end
Feedback


 @!method add_feedback(feedback_data:, user_id: nil, comment: nil)
 Add feedback.
 Adds feedback in the form of _labels_ from a subject-matter expert (SME) to a
   governing document.
   **Important:** Feedback is not immediately incorporated into the training model,
   nor is it guaranteed to be incorporated at a later date. Instead, submitted
   feedback is used to suggest future updates to the training model.
 @param feedback_data [FeedbackDataInput] Feedback data for submission.
 @param user_id [String] An optional string identifying the user.
 @param comment [String] An optional comment on or description of the feedback.
 @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.