consider allowed object types during creation of menu links in getlinks
api method