You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AuthorizationPolicy does not include the required PatchAsync method to update the policy.
PostAsync method is available but the endpoint does not support POST for updating.
ToPatchRequestInformation method is also unavailable.
Having the Patch methods available to update the policy.
client.Policies.AuthorizationPolicy.PatchAsync(graphObject)
client.Policies.AuthorizationPolicy.ToPatchRequestInformation(graphObject)
How to reproduce
Review Microsoft.Graph.Beta.Policies.AuthorizationPolicy.AuthorizationPolicyRequestBuilder
The only available related methods are Get and Post (which the endpoint does not support)
Describe the bug
AuthorizationPolicy does not include the required PatchAsync method to update the policy.
PostAsync method is available but the endpoint does not support POST for updating.
ToPatchRequestInformation method is also unavailable.
Seems like the url is also "wrong" when Posting as it should be "policies/authorizationPolicy/authorizationPolicy"
according to: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/blob/main/api-reference/beta/api/authorizationpolicy-update.md
Expected behavior
Having the Patch methods available to update the policy.
client.Policies.AuthorizationPolicy.PatchAsync(graphObject)
client.Policies.AuthorizationPolicy.ToPatchRequestInformation(graphObject)
How to reproduce
Review Microsoft.Graph.Beta.Policies.AuthorizationPolicy.AuthorizationPolicyRequestBuilder
The only available related methods are Get and Post (which the endpoint does not support)
SDK Version
5.79.0-preview
Latest version known to work for scenario above?
None
Known Workarounds
var pReq = client.
Policies.
AuthorizationPolicy.
WithUrl("https://graph.microsoft.com/beta/policies/authorizationPolicy/authorizationPolicy").
ToPostRequestInformation((AuthorizationPolicy)graphResource);
pReq.HttpMethod = Microsoft.Kiota.Abstractions.Method.PATCH;
await client.RequestAdapter.SendAsync(resPostReq, AuthorizationPolicy.CreateFromDiscriminatorValue);
Debug output
Nothing to show here since the methods are unavailable
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: