I am running PowerShell Universal in Docker. Is there any specific setting that I need in order to call the management APIs http://localhost:5000/swagger/index.html. I am able to call them from the swagger page but seem to hit access denied if I use Invoke-RestMethod from PowerShell, or curl for that matter. I am also able to use the custom endpoints API that I created.
Thanks
Are you using app tokens when using Invoke-RestMethod? Can you post a snippet of what that call looks like?
Well, just giving it a try in docker, so a basic call to get the id, e.g.
Invoke-RestMethod ‘http://localhost:5000/api/v1/dashboard’ -ContentType ‘application/json’
The error is unauthorized 401.
You’ll need an app token to call the management API.
Much appreciated. Will give this a try.