Update domain

Update the properties of domain object.

Important: Only verified domains can be updated.

Prerequisites

One of the following scopes are required to execute this API: Domain.ReadWrite.All or Directory.AccessAsUser.All

HTTP request

PATCH /domains/{id}

For {id}, specify the domain with its fully qualified domain name.

Request headers

Name Description
Authorization Bearer <token> Required
Content-Type application/json

Request body

In the request body, supply the values for relevant fields to be updated. Existing properties not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, only include changed values.

Response

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

Example

Request
PATCH https://graph.microsoft.com/beta/domains/contoso.com
Content-type: application/json

{
  "isDefault": true,
  "supportedServices": [
    "Email",
    "OfficeCommunicationsOnline"
  ]
}
Response
HTTP/1.1 204 No Content