microsoftgraph / microsoftgraph/msgraph-metadata

Wrong update method for /policies/adminConsentRequestPolicy - Should be `PUT`not `PATCH`

Open
#583 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ToTriage
Dominant language
XSLT
Stars
166
Forks
55
Avg merge
16h 12m
Merged PRs (30d)
14

Description

The OpenAPI should use PUT instead PATCH for the policies/adminConsentRequestPolicy when updating settings.

If you try to use PATCH you will receive No HTTP resource was found that matches the request URI 'https://api.accessreviews.identitygovernance.azure.com/accessReviews/v2.0/me/adminConsentRequestPolicy?ring=2' error.

The HTTP example for the API Reference documentation is correct. See https://learn.microsoft.com/en-us/graph/api/adminconsentrequestpolicy-update?view=graph-rest-1.0&tabs=http

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the OpenAPI metadata for policies/adminConsentRequestPolicy and compare its update operation with the linked Microsoft Graph API reference. Change the operation from PATCH to PUT, then verify that the generated API description and the documented request method match the reference.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.