| title | Update permissionGrantPolicy |
|---|---|
| description | Update a permissionGrantPolicy object. |
| ms.localizationpriority | medium |
| doc_type | apiPageType |
| ms.subservice | entra-sign-in |
| author | psignoret |
| ms.date | 04/05/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Update properties of a permissionGrantPolicy.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
[!INCLUDE rbac-permission-grant-preapproval-policy-write]
PATCH /policies/permissionGrantPolicies/{id}| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
[!INCLUDE table-intro]
| Property | Type | Description |
|---|---|---|
| displayName | String | The display name for the permission grant policy. |
| description | String | The description for the permission grant policy. |
If successful, this method returns a 204 No Content response code.
The following example shows a request.
PATCH https://graph.microsoft.com/beta/policies/permissionGrantPolicies/my-custom-consent-policy
Content-Type: application/json
{
"displayName": "Custom permission grant policy"
}
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
HTTP/1.1 204 No Content