postFlowWorkflowsWithHttpInfo method
Creates a workflow in the caller's org.
Creates a workflow in the caller's org. The org's project id is pinned server-side from the validated principal — there is no field by which a caller could place a workflow in another org.
Note: This method returns the HTTP Response.
Parameters:
- FlowCreate flowCreate (required):
Implementation
Future<Response> postFlowWorkflowsWithHttpInfo(FlowCreate flowCreate,) async {
// ignore: prefer_const_declarations
final path = r'/v1/flow/workflows';
// ignore: prefer_final_locals
Object? postBody = flowCreate;
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,
);
}