updatableAsset: unenrollAssets

Namespace: microsoft.graph.windowsUpdates

Important

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.

You can also use the method unenrollAssetsById to unenroll assets.

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) 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.
assets microsoft.graph.windowsUpdates.updatableAsset collection List of updatableAsset resources to unenroll from update management by the service for the given updateCategory.

Response

If successful, this action returns a 202 Accepted response code. It does not return anything in the response body.

Examples

Request

POST https://graph.microsoft.com/beta/admin/windows/updates/updatableAssets/unenrollAssets
Content-Type: application/json

{
  "updateCategory": "String",
  "assets": [
    {
      "@odata.type": "#microsoft.graph.windowsUpdates.azureADDevice",
      "id": "String (identifier)"
    }
  ]
}

Response

HTTP/1.1 202 Accepted