我尝试通过Graph资源管理器更新Azure AAD应用程序设置,但收到错误消息MethodNotAllowed
https://developer.microsoft.com/en-us/graph/graph-explorer
我什至尝试了以下Microsoft官方document给出的示例,但仍然遇到相同的问题。
我试图从C#代码中调用 GraphAPI UpdateAsync()
,但出现错误
请求中不允许使用指定的HTTP方法
发起请求时,即使遇到问题,我也已指定了PATCH。
更新:
我尝试通过在AAD App object_id
中传递Graph API url
,如下所示,但仍然出现问题。
答案 0 :(得分:0)
update application API不支持$filter
表达式。
如果要按ID提取应用程序,则需要将list applications API与{{1}}查询表达式一起使用。
例如:
然后,使用update application API对其进行更新: