Update homerealmdiscoverypolicy

Namespace: microsoft.graph

Update the properties of a homeRealmDiscoveryPolicy object.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Policy.ReadWrite.ApplicationConfiguration
Delegated (personal Microsoft account) Not supported.
Application Policy.ReadWrite.ApplicationConfiguration

HTTP request

PATCH /policies/homeRealmDiscoveryPolicies/{id}

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-type application/json. Required.

Request body

In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed.

Property Type Description
definition String collection A string collection containing a JSON string that defines the rules and settings for this policy. Required.
description String Description for this policy.
displayName String Display name for this policy. Required.
isOrganizationDefault Boolean If set to true, activates this policy. There can be many policies for the same policy type, but only one can be activated as the organization default. Optional, default value is false.


If successful, this method returns a 204 No Content response code. It does not return anything in the response body.



The following is an example of the request.

PATCH https://graph.microsoft.com/v1.0/policies/homeRealmDiscoveryPolicies/{id}
Content-type: application/json

    "definition": [
    "displayName": "Contoso default HRD Policy"


The following is an example of the response.

HTTP/1.1 204 No Content