APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Unenroll updatableAsset resources from update management by the deployment service.
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)
WindowsUpdates.ReadWrite.All
Delegated (personal Microsoft account)
Not supported.
Application
WindowsUpdates.ReadWrite.All
HTTP request
POST /admin/windows/updates/updatableAssets/unenrollAssets
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Content-Type
application/json. Required.
Request body
In the request body, supply JSON representation of the parameters.
The following table shows the parameters that can be used with this action.
Parameter
Type
Description
updateCategory
microsoft.graph.windowsUpdates.updateCategory
The category of updates for the service to stop managing. Supports a subset of the values for updateCategory. Possible values are: feature, unknownFutureValue.
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var updateCategory = Microsoft.Graph.WindowsUpdates.UpdateCategory.Feature;
var assets = new List<Microsoft.Graph.WindowsUpdates.UpdatableAsset>()
{
new Microsoft.Graph.WindowsUpdates.AzureADDevice
{
Id = "String (identifier)"
}
};
await graphClient.Admin.Windows.Updates.UpdatableAssets
.UnenrollAssets(updateCategory,assets)
.Request()
.PostAsync();
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClient(requestAdapter)
requestBody := graphmodels.NewUnenrollAssetsPostRequestBody()
updateCategory := graphmodels.STRING_UPDATECATEGORY
requestBody.SetUpdateCategory(&updateCategory)
updatableAsset := graphmodels.NewUpdatableAsset()
id := "String (identifier)"
updatableAsset.SetId(&id)
assets := []graphmodels.Objectable {
updatableAsset,
}
requestBody.SetAssets(assets)
graphClient.Admin().Windows().Updates().UpdatableAssets().UnenrollAssets().Post(context.Background(), requestBody, nil)
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new UnenrollAssetsPostRequestBody();
$requestBody->setUpdateCategory(new UpdateCategory('string'));
$assetsUpdatableAsset1 = new UpdatableAsset();
$assetsUpdatableAsset1->set@odatatype('#microsoft.graph.windowsUpdates.azureADDevice');
$assetsUpdatableAsset1->setId('String (identifier)');
$assetsArray []= $assetsUpdatableAsset1;
$requestBody->setAssets($assetsArray);
$graphServiceClient->admin()->windows()->updates()->updatableAssets()->unenrollAssets()->post($requestBody);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.