txfz 0 Posted June 26, 2023 Share Posted June 26, 2023 Hi, I'm trying to retrieve a list of all companies in our EMA. I managed to do it before, but I can't remember how. I tried the /api/Search/Companies endpoint with the following body: { "search": {}, "skip": 0, "take": 10 } but this gives me the following response: {"Error":{"Code":7,"SubCode":4,"Message":""}} for which the subcode is not defined in the documentation. Link to comment Share on other sites More sharing options...
ESET Staff Solution emilota 7 Posted June 27, 2023 ESET Staff Solution Share Posted June 27, 2023 Hello @txfz, try to use https://help.eset.com/ema/2/api/en-US/children.html or https://help.eset.com/ema/2/api/en-US/descendants.html. Link to comment Share on other sites More sharing options...
txfz 0 Posted June 27, 2023 Author Share Posted June 27, 2023 (edited) Thank you, that works! Is there a way to determine the total number of companies? I've noticed that there is no way to determine from the results whether there exists more companies than the value of your provided take parameter. Edited June 27, 2023 by txfz Link to comment Share on other sites More sharing options...
ESET Staff emilota 7 Posted June 27, 2023 ESET Staff Share Posted June 27, 2023 Unfortunately, there is no parameter indicating companies on the top of take parameter, however I take this to product team for consideration. Link to comment Share on other sites More sharing options...
Recommended Posts