问题描述
你好团队,
Hi team,
美好的一天!我正在尝试使用post man工具以及C#代码(HttpClient)通过rest api更新用户容量信息但是低于错误。
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.
我能够使用其余的api获取容量信息,但是没有工作更新(PATCH动词) )。
I am able to get the capacity information using the rest api, but not working update(PATCH verb).
TFS内部部署版本:TFS2018 update2
TFS on-premise version : TFS2018 update2
JSON补丁文档:
JSON patch document:
{
{
" activities":[
{
" capacityPerDay":1,
" name":" DEV"
}
]
}
"activities": [
{
"capacityPerDay": 1,
"name": "DEV"
}
]
}
从帖子man和C#代码获得异常:
Exception getting from post man and C# code:
{
" $ id":" 1",
" message":" HTTP请求的处理导致异常。请查看此异常的'Response'属性返回的HTTP响应有关详情。",
" typeName":" System.Web.Http.HttpResponseException,System.Web.Http",
" typeKey":" HttpResponseException",
" errorCode":0,
" eventId" ;:0
}
{
"$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
}
当使用邮递员工具或我自己的C#脚本(HttpClient)时,我没有收到TFS上述响应以外的任何其他异常信息
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。
Nagaraju.
推荐答案
欢迎来到MSDN论坛。
Welcome to the MSDN forum.
根据说明,您的问题是关于TFS。由于我们的论坛是讨论VS IDE,请重定向到这个适当的论坛:
并点击"报告问题"以查看更专业的支持,感谢您的理解。
According to the description, your issue is about the TFS. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://developercommunity.visualstudio.com/spaces/22/index.html and click "Report a problem" to see for a more professional support, thank you for your understanding.
祝你好运,
Sara
这篇关于TFS2018 - 无法使用Rest API更新用户容量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!