transferWorkflow method
Transfer a workflow to another project
Implementation
Future<Response> transferWorkflow(String id, String destinationProjectId) async {
try {
final response = await _dio.put(
'/workflows/$id/transfer',
data: {
'destinationProjectId': destinationProjectId,
},
);
return response;
} on DioException catch (e) {
throw Exception('Failed to transfer workflow: ${e.message}');
}
}