I am currently adding agents to the inventory through the auto-discovery method. I was wondering if there is a way to automatically add auto-discovered agents to the inventory without logging into the dashboard and clicking the auto-add button.
Also, what are the advantages and use cases of using hqapi to add objects to the inventory versus relying on auto-discovery?