riskCreateDatasetWithHttpInfo method

Future<Response> riskCreateDatasetWithHttpInfo(
  1. RiskDatasetSpec riskDatasetSpec
)

Declare the next version of a dataset

Declares the next version of a dataset from a bound query over this org's own feature surface. It mints a VERSION and writes no rows: a version is declared, then materialised once, then never rewritten. Version numbers are monotone and never reused, so "version 3 of signups" means one thing forever — which is the whole reason a model can cite one. The window is bounded by the source's retention, the horizon by a year, the rows by the plane's cap, and the number of datasets and versions per org by their own limits. Every refusal names which bound it hit.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> riskCreateDatasetWithHttpInfo(RiskDatasetSpec riskDatasetSpec,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/dataset';

  // ignore: prefer_final_locals
  Object? postBody = riskDatasetSpec;

  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,
  );
}