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