0

I tried to update Azure AAD application setting through Graph explorer but getting error as MethodNotAllowed

https://developer.microsoft.com/en-us/graph/graph-explorer

enter image description here

I even tried samples given by below Microsoft official document but still getting same issue.

I tried to call GraphAPI UpdateAsync() from C# code, but got error

Specified HTTP method is not allowed for the request

While initiating request, I have specified PATCH even then getting issues.

Update:

I tried by passing AAD App object_id in Graph API url as below but still getting issue.

enter image description here

S.Chandra Sekhar
  • 453
  • 3
  • 11
  • 22

1 Answers1

0

The update application API does not support $filter expression.

If you want to fetch the application by ID, you need to use list applications API with $filter query expression.

For example:

enter image description here

Then, use update application API to update it:

enter image description here

Jack Jia
  • 5,268
  • 1
  • 12
  • 14
  • @Jak Jia I tried all steps mentioned by you , I passed AAD app objectID in url, but still facing same MethodNotAllowed issue. – S.Chandra Sekhar Mar 09 '20 at 17:09
  • @John Any screenshot? – Jack Jia Mar 10 '20 at 03:43
  • I tried again, and everything works fine here. Notice that, you can only update application with `PATCH https://graph.microsoft.com/v1.0/applications/{object_id}` – Jack Jia Mar 10 '20 at 06:18
  • @Jak Jia, I have updated screenshot in question.Kindly take a look and suggest any solution for the issue. I have passed objectID in the url and using PATCH – S.Chandra Sekhar Mar 10 '20 at 17:18
  • @John Sorry for not responding in time, I was on holiday. Have you checked your permission? I cannot reproduce your issue – Jack Jia Mar 18 '20 at 01:44