postAutoFlowsByIdEnableWithHttpInfo method

Future<Response> postAutoFlowsByIdEnableWithHttpInfo(
  1. String id
)

Arms a flow's trigger and marks it ENABLED.

Arms a flow's trigger and marks it ENABLED. A POLLING trigger gets a cron schedule on the durable engine; a WEBHOOK trigger gets a subscription in the routing index, so an inbound event starts it; a MANUAL trigger arms nothing and still runs on demand.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID is the flow to act on, from the path.

Implementation

Future<Response> postAutoFlowsByIdEnableWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/auto/flows/{id}/enable'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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