Atleast one step ahead youa re getting 200 resoonse. now coming to empty response thats because the license consumption stats or license type have changed a lot during past year and that might have broken this api…can you please tell exactly what youa re looking at to get so that we can check other apis which might give you that info?
is it that how many licenses are consumed is what youa re tryign to get?
I’m trying to get how much of each type of license is being used, the percentage of hours a license is occupied in 24h (but I believe this is not the case now), how many are still free and that kind of thing.
Could you please show me your scope again? from external application set up as well the one you are passing in insomnia to get access token. I feel something is messed up at scope part.
i am able to get response from this api, response looks somewhat like below, do you think these kind of details would help you ?
want to get how much of a license is being consumed, for example, of the 720 hours, how many of those hours was the license in use executing something?
For getting such views, i would not recommend api usage as I dont think there is any direct api for same but such kind of details can be pulled from orchestrator db.
So, I would suggest to explore Insights for same. It has alot of inbuilt templates already for use by UiPath, you can consider customizing on top of same. or built totally new one for your reference.
I am attaching below a sample of what you asked from Insights dashboard. I think this is quite similar to your ask.
Method: GET
URL: https://cloud.uipath.com/YOUR_ORG_NAME/YOUR_TENANT_NAME/orchestrator_/api/Stats/GetLicenseStats?days=7&tenantId=YOUR_ORCHESTRATOR_TENANT_ID
In Headers add this:
First, please confirm if The response that I shared from GetLicenseStats api above, does that solve your purpose? If yes, then we can spend efforts in getting that api work for you.
If not, and you are looking to get response similar to GetLicenseComsuptionStats, then I would suggest below 2 steps
if you are in enterprise license, raise a support ticket to UiPath asking about GetLicrnseComsuptionStats api as that would solve your purpose but is broken currently. I am also looping @marian.platonov for his inputs on this api.
if output of step 1) is GetLicenseCounsumptionStats api can not be used going further and UiPath doesn’t plan on fixing/recreating that, then yes, Insights is your option. Using Insights you will be able to customize the consumption stats anyway you want. But you will have to buy license for that.
So, My next question would be are you on enterprise license or community one?
If enterprise, you can talk to UiPath local sales team about the same and get quotes.
There might be an option as well to just get a trial for same so you have enough time to figure out if Insights really is the answer to your problem.
And then later you can plan to actually buy or Not buy that.
Please note: pro trial is available for community users as well but I am not quite sure at the moment if it also allows Insights usage. I can check on that for you if you are on community version.