Can I rename an AnalyticsEvent through the SDK?

hello.

I’m trying to create code to dynamically create/delete/update (rename, etc.) Analytics Events so that they are synchronized with itemManager.

I found the documentation below on how to create and delete Analytics Events, but I would like to know how to rename the Analytics Events that have been created.

: VideoOS.Platform.ConfigurationItems.AnalyticsEventFolder Class Reference

I noticed that the “VideoOS.Platform.ConfigurationItems.AnalyticsEventFolde” class does not have a method called update or modify.

Is there any way to modify the name, description of an Analytics event using ServerTask or another SDK?

I choose to answer in the form of a snippet of code.

static private void renameAE(string name, string newName)
{
	ManagementServer ms = new ManagementServer(EnvironmentManager.Instance.MasterSite.ServerId);
	var ae = ms.AnalyticsEventFolder.AnalyticsEvents.FirstOrDefault(x => x.Name == name);
	if (ae != null)
	{
		ae.Name = newName;
		ae.Save();
	}
}