Deepak Jain
Deepak Jain

Reputation: 137

401 - Unauthorized: Access is denied due to invalid credentials when Trying to access the TFS API by postamn

i am getting 401 - Unauthorised: Access is denied due to invalid credentials error while i am trying to access the TFS API by Postman
https://www.visualstudio.com/en-us/docs/integrate/api/wit/wiql

this is i am putting in my Postman
http://apactfs.cbre.com:8080/tfs/applications/DefaultCollection/_apis/wit/workitems?ids=297,299,300&api-version=1.0


Postman image

Upvotes: 0

Views: 5883

Answers (2)

for this need to change settings

Click here to View Options options

need to configure these options based on this only a response will come

Upvotes: 1

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31053

You need to go to Authorization tab to choose Basic Auth and specify the username and password there:

enter image description here

Make sure you have enable Basic Auth for your TFS:

enter image description here

Upvotes: 1

Related Questions