Changing Prefab Name through Code

So I have a system that is built to house dozens of very similar prefabs. But since they may differ on occasion, I would like that ever since I change something in the prefab, it’s name would update also so It’s easier to find through the search function if ever need comes. This updating doesn’t need to be done ingame, and it’s meant to be only used in the Editor.

I’ll try to examplify what I’m trying to accomplish

Prefab Name: Wave

Difficulty 1
ID 19
Type Regular

Press Update Button

Prefab Name: Wave_D1_19_Regular

Can this be done?

You can use AssetDatabase.RenameAsset.

Also look PrefabUtility for other prefab actions.