deactivateWorkflow method

Future<Response> deactivateWorkflow(
  1. String id
)

Deactivate a workflow

Implementation

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