postFlowRunsWithHttpInfo method

Future<Response> postFlowRunsWithHttpInfo(
  1. FlowRun flowRun
)

Run executes one of the caller's workflows synchronously: the graph runs in the flow service and the response carries the run's session and outputs.

Run executes one of the caller's workflows synchronously: the graph runs in the flow service and the response carries the run's session and outputs. A graph whose components fail reports the product's own error. Runs are bounded by the product's five-minute sync ceiling.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postFlowRunsWithHttpInfo(FlowRun flowRun,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/flow/runs';

  // ignore: prefer_final_locals
  Object? postBody = flowRun;

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