In the request body, supply only the values for properties that should be updated. Existing properties that aren't included in the request body maintains 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
description
String
Description for the site list.
displayName
String
Display name of this site list.
Response
If successful, this method returns a 204 No Content response code.
PATCH https://graph.microsoft.com/v1.0/admin/edge/internetExplorerMode/siteLists/36ba61eb-c492-4283-a38b-963a1dbb2f69
Content-Type: application/json
Content-length: 283
{
"displayName": "Production Site List A",
"description": "Production site list for team A"
}
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new BrowserSiteList
{
DisplayName = "Production Site List A",
Description = "Production site list for team A",
};
var result = await graphClient.Admin.Edge.InternetExplorerMode.SiteLists["{browserSiteList-id}"].PatchAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc admin edge internet-explorer-mode site-lists patch --browser-site-list-id {browserSiteList-id} --body '{\
"displayName": "Production Site List A",\
"description": "Production site list for team A"\
}\
'
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
BrowserSiteList browserSiteList = new BrowserSiteList();
browserSiteList.displayName = "Production Site List A";
browserSiteList.description = "Production site list for team A";
graphClient.admin().edge().internetExplorerMode().siteLists("36ba61eb-c492-4283-a38b-963a1dbb2f69")
.buildRequest()
.patch(browserSiteList);
const options = {
authProvider,
};
const client = Client.init(options);
const browserSiteList = {
displayName: 'Production Site List A',
description: 'Production site list for team A'
};
await client.api('/admin/edge/internetExplorerMode/siteLists/36ba61eb-c492-4283-a38b-963a1dbb2f69')
.update(browserSiteList);
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new BrowserSiteList();
$requestBody->setDisplayName('Production Site List A');
$requestBody->setDescription('Production site list for team A');
$result = $graphServiceClient->admin()->edge()->internetExplorerMode()->siteLists()->byBrowserSiteListId('browserSiteList-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.DeviceManagement
$params = @{
displayName = "Production Site List A"
description = "Production site list for team A"
}
Update-MgAdminEdgeInternetExplorerModeSiteList -BrowserSiteListId $browserSiteListId -BodyParameter $params
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(request_adapter)
request_body = BrowserSiteList(
display_name = "Production Site List A",
description = "Production site list for team A",
)
result = await graph_client.admin.edge.internet_explorer_mode.site_lists.by_site_list_id('browserSiteList-id').patch(body = request_body)