title | description | ms.localizationpriority | author | ms.subservice | doc_type |
---|---|---|---|---|---|
Update appManagementPolicy |
Update an application management policy. |
medium |
madansr7 |
entra-sign-in |
apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Update an appManagementPolicy object.
[!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-app-auth-method-custom-policy-api-update]
PATCH /policies/appManagementPolicies/{id}
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Content-Type | application/json. Required. |
[!INCLUDE table-intro]
Property | Type | Description |
---|---|---|
description | String | The description of the policy. Inherited from policyBase. |
displayName | String | The display name of the policy. Inherited from policyBase. |
isEnabled | Boolean | Denotes whether the policy is enabled. |
restrictions | appManagementConfiguration | Restrictions that apply to an application or service principal object. |
If successful, this method returns a 204 No Content
response code.
The following example shows a request.
PATCH https://graph.microsoft.com/beta/policies/appManagementPolicies/{id}
{
"isEnabled": false
}
[!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]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 204 No Content