TFS2018 - Unable to update user capacity using Rest API

  • Thread starter Thread starter Naga Raju Ch
  • Start date Start date
N

Naga Raju Ch

Guest
Hi team,

Good day ! I am trying to update user capacity information using post man tool and also from C# code (HttpClient) through rest api but getting below error.

Can some one help me in resolving this error.

I am able to get the capacity information using the rest api, but not working update(PATCH verb).

TFS on-premise version : TFS2018 update2

Rest API : PATCH: http://sampleinstance.com:8080/tfs/TFSCollection/TFSProject/TfsTeam/_apis/work/teamsettings/iterations/d41a122b-f61b-4bd9-92be-496f3a804019/capacities/474f8543-a957-4b2e-a32f-a0cd4445da4c?api-version=4.1

JSON patch document:

{

"activities": [
{
"capacityPerDay": 1,
"name": "DEV"
}
]
}


Exception getting from post man and C# code:

{
"$id": "1",
"innerException": null,
"message": "Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.",
"typeName": "System.Web.Http.HttpResponseException, System.Web.Http",
"typeKey": "HttpResponseException",
"errorCode": 0,
"eventId": 0
}


I am not getting any other exception information other than the above response from TFS when using from postman tool or my own C# script(HttpClient)

Thanks and Regards,

Nagaraju.

Continue reading...
 
Back
Top