postAutoFlowsWithHttpInfo method
Creates an automation and its initial DRAFT version in one call.
Creates an automation and its initial DRAFT version in one call. The new flow is DISABLED — creating it does not arm its trigger; POST /v1/auto/flows/{id}/enable does that.
Note: This method returns the HTTP Response.
Parameters:
- CreateFlowReq createFlowReq (required):
Implementation
Future<Response> postAutoFlowsWithHttpInfo(CreateFlowReq createFlowReq,) async {
// ignore: prefer_const_declarations
final path = r'/v1/auto/flows';
// ignore: prefer_final_locals
Object? postBody = createFlowReq;
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,
);
}