getAutoRunsWithHttpInfo method

Future<Response> getAutoRunsWithHttpInfo({
  1. String? flowId,
  2. int? limit,
})

Returns the caller org's run history, newest first.

Returns the caller org's run history, newest first. The optional flowId query narrows it to one flow and limit bounds the page.

Note: This method returns the HTTP Response.

Parameters:

  • String flowId: FlowID narrows the history to one flow. Omit it for the whole org's runs.

  • int limit: Limit bounds the page (default 200, maximum 1000).

Implementation

Future<Response> getAutoRunsWithHttpInfo({ String? flowId, int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/auto/runs';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (flowId != null) {
    queryParams.addAll(_queryParams('', 'flowId', flowId));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const contentTypes = <String>[];


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