updateWorkflow method
Update a workflow
Implementation
Future<Response> updateWorkflow(String id, Map<String, dynamic> updatedWorkflowData) async {
try {
final response = await _dio.put(
'/workflows/$id',
data: updatedWorkflowData,
);
return response;
} on DioException catch (e) {
throw Exception('Failed to update workflow: ${e.message}');
}
}