Update browserSharedCookie

Namespace: microsoft.graph

Update the properties of a browserSharedCookie object.

Permissions

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) BrowserSiteLists.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application BrowserSiteLists.ReadWrite.All

HTTP request

PATCH /admin/edge/internetExplorerMode/siteLists/{browserSiteListId}/sharedCookies/{browserSharedCookieId}

Request headers

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

Request body

In the request body, supply only the values for properties 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.

The following table specifies the properties that can be updated.

Property Type Description
comment String The comment of the cookie.
displayName String The name of the cookie.
hostOnly Boolean Determines whether a cookie is a host-only or domain cookie.
hostOrDomain String The URL of the cookie.
path String The path of the cookie.
sourceEnvironment browserSharedCookieSourceEnvironment Specifies how the cookies are shared between Microsoft Edge and Internet Explorer. The possible values are: microsoftEdge, internetExplorer11, both, unknownFutureValue.

Response

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

Examples

Request

The following is an example of a request.

PATCH https://graph.microsoft.com/v1.0/admin/edge/internetExplorerMode/siteLists/20579923-e6c8-425a-b728-47f43c10bc05/sharedCookies/972a5778-df43-45fd-9c2a-5dd944c7a1ce
Content-Type: application/json
Content-length: 349

{
  "hostOrDomain": "www.microsoft.com",
  "sourceEnvironment": "microsoftEdge",
  "displayName": "Microsoft Cookie",
  "path": "/",
  "hostOnly": true,
  "comment": "Updating source environment."
}

Response

The following is an example of the response.

HTTP/1.1 204 No Content