API to add asset reference

Hi,

is there any API command to add a magnetic mate reference? It can be done manually in the menu via Asset Manager, but I can't figure out via macro. Macro recorder shows nothing. Any hints?