Hi MS team,
As updating authentication/phonemethods for MFA is not avaialbe in MS graph 1.0 so I am trying to beta api.
According document https://learn.microsoft.com/en-us/graph/api/authentication-post-phonemethods?view=graph-rest-beta&tabs=http, when I am calling the API with below url
https://graph.microsoft.com/**beta**/users/70ee3214-3b2f-41f9-8d35-3d64083b4771/authentication/phoneMethods/3179e48a-750b-4051-897c-87b9720928f7
with PUT , I am getting below responce
{
"error": {
"code": "badRequest",
"message": "The requested authentication method id of [3179e48a-750b-4051-897c-87b9720928f7] was not found for this user, and so it cannot be updated",
"innerError": {
"message": "The requested authentication method id of [3179e48a-750b-4051-897c-87b9720928f7] was not found for this user, and so it cannot be updated",
"date": "2022-04-27T08:04:31",
"request-id": "034e1d8b-f1ec-479f-ae51-5c0d17eb2057",
"client-request-id": "6b06369d-ca36-d13c-11ec-6952ea5f7454"
}
}
}
And with POST ,
{
"error": {
"code": "UnknownError",
"message": "{\"Message\":\"No HTTP resource was found that matches the request URI 'https://mface.windowsazure.com/odata/users('70bd3214-3b2f-41f9-8d35-3d64083b4771%40bbfb17a3-e6e2-4186-a75e-4a8197406887')/authentication/phoneMethods('3179e48a-750b-4051-897c-87b9720928f7')'.\",\"MessageDetail\":\"No type was found that matches the controller named 'users'.\"}",
"innerError": {
"date": "2022-04-27T07:59:37",
"request-id": "706f7b77-be58-4226-a288-841657dd7a86",
"client-request-id": "c910545b-0765-115c-3128-d29329f1058e"
}
}
}
Anything I am missing here to call this graph api . Please help