How to store a GameObject in an AssetBundle and this on harddisk/webserver via editor script?

Newbie question. Sorry. Can´t find a solutiuon.

Situation:
User clicks menu, editor script runs and should finally “export” a GameObject on harddisk/webserver

Details:
Problem is that I have a GameObject somewhere in the hierachy, but NOT in/under the Assets/ path.
Idea is:
GameObject → prefab → AssetBundle → save on harddisk or even better save it on webserver.
Are there steps missing, like creating a “temp” asset?

Thanks in advance!

lol … learned that i have to store it under “Assets/prefabs” and not “Assets/somethingelse” … lol