riskLabelWithHttpInfo method

Future<Response> riskLabelWithHttpInfo(
  1. RiskLabelIn riskLabelIn
)

Assert ground truth about events

Records a batch of ground truth against the entities it judges. Each assertion carries TWO times — when the judged event happened, and when the assertion became knowable — and both are required. The second is what keeps a chargeback that landed in June out of a model that had to decide in February. It is idempotent on the CONTENT of an assertion, so a webhook that redelivers is safe. It never overwrites: a source that corrects itself later files a NEW assertion, which wins from the moment it became knowable and leaves every earlier observation instant seeing exactly what it saw. The asserter is stamped from the validated credential and is not a body field.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> riskLabelWithHttpInfo(RiskLabelIn riskLabelIn,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/label';

  // ignore: prefer_final_locals
  Object? postBody = riskLabelIn;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}