Update a directory setting

Update the properties of a specific directory setting object.


The following scopes are required to execute this API: Directory.ReadWrite.All or Directory.AccessAsUser.All

HTTP request

Update a tenant-wide or group specific setting.

PATCH /settings/{id}
PATCH /groups/{id}/settings/{id}

Optional request headers

Name Description
Authorization Bearer {token}. 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 you shouldn't include existing values that haven't changed.

Property Type Description
values settingValue The set of values that need to be updated. NOTE: You must supply the entire collection, and cannot just update one setting of the collection.


If successful, this method returns a 204 OK response code.



Here is an example of the request.

PATCH https://graph.microsoft.com/beta/settings/{id}
Content-type: application/json
Content-length: 178

  "values": [
      "name": "name-value",
      "value": "value-value"
HTTP/1.1 204 OK