Forum Discussion
Get workspace components git status through API call
Hi amaaiia,
Does the sersvicce principal have contributor or higher on the workspaces? These permissions are different from the delegated permissions in my experience.
If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.
- amaaiia10 months agoSkilled Sharer
Contributor role on the workspace
- tayloramy10 months agoSuper User
Hi amaaiia,
Can you show me the exact POST request that you're sending? A 400 error usually means that your request is incorrect. Microsoft's APIs are particularly picky when it comes to the parameters and body.
If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.
- amaaiia10 months agoSkilled Sharer
The POST request should be ok because if I change the Bearer token with a token of my personal account, I get 200 OK:
If I use service principal token, then I get 400:
But the POST request is the same.