postFlagsWithHttpInfo method

Future<Response> postFlagsWithHttpInfo(
  1. EvaluateIn evaluateIn
)

Evaluate runs the caller's flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute.

Evaluate runs the caller's flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller's own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postFlagsWithHttpInfo(EvaluateIn evaluateIn,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/flags';

  // ignore: prefer_final_locals
  Object? postBody = evaluateIn;

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