我想更新birthday
使用补丁请求的用户。
更新其他属性按预期工作,但此时birthday
包含属性时,返回以下错误:
目标实体集当前不支持该请求
我已经尝试更新用户以确保权限正常。
使用应用程序权限。
This PATCH
请求/V1.0/users/{id}
works:
{
"givenName": "Fridas"
}
但是传递这个请求主体:
{
"givenName":"Fridas",
"birthday" : "2014-01-01T00:00:00Z
}
抛出错误
{
"error":
{
"code":"BadRequest",
"message":"The request is currently not supported on the targeted entity set",
"innerError":
{
"request-id":"5f0d36d1-0bff-437b-9dc8-5579a7ec6e72",
"date":"2019-08-13T15:27:40"
}
}
}
When I update the birthday separately, I get a 500 error. Print screens below. Updating the user id works fine, birthday does not.
Same user id is used in the request.
我不确定为什么会发生这种情况,但一种解决方法(尽管很烦人)是与其他属性分开更新生日。
E.g.
PATCH https://graph.microsoft.com/v1.0/users/userid
{
"birthday" : "2014-01-01T00:00:00Z"
}
Here is a screenshot from MS Graph Explorer:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)