Skip to content

Latest commit

 

History

History
135 lines (95 loc) · 5.18 KB

appmanagementpolicy-update.md

File metadata and controls

135 lines (95 loc) · 5.18 KB
title description ms.localizationpriority author ms.subservice doc_type
Update appManagementPolicy
Update an application management policy.
medium
madansr7
entra-sign-in
apiPageType

Update appManagementPolicy

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Update an appManagementPolicy object.

[!INCLUDE national-cloud-support]

Permissions

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]

HTTP request

PATCH /policies/appManagementPolicies/{id}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

[!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.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

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]


Response

The following example shows the response.

HTTP/1.1 204 No Content