activateWorkflow method

Future<Response> activateWorkflow(
  1. String id
)

Activate a workflow

Implementation

Future<Response> activateWorkflow(String id) async {
  try {
    final response = await _dio.post(
      '/workflows/$id/activate',
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to activate workflow: ${e.message}');
  }
}