Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use Windows Autopatch programmatic controls to approve and schedule software updates through the Microsoft Graph API. You can call the API directly or use a Graph SDK.
This article uses Graph Explorer to walk through the entire process of deploying a driver update to clients. In this article, you will:
- Open Graph Explorer
- Create a driver update policy
- Create a ring and assign Microsoft Entra groups
- Find driver update content to approve
- Review applicable devices
- Review applicability across policies
- Approve content for deployment
- Pause a content approval
- Pause a ring
- Resume a paused ring
- View driver installation status
- Unenroll devices
Important
These Microsoft Graph APIs use the /beta endpoint and are subject to change. Microsoft doesn't support using beta APIs in production applications. For more information, see the version information in the linked API references.
Prerequisites
Ensure that you meet all of the Windows Autopatch prerequisites.
Permissions
The following permissions are needed for the queries listed in this article:
- WindowsUpdates.ReadWrite.All for Windows Autopatch operations.
- At least Device.Read.All permission to display device information.
Some roles, such as the Windows Update deployment administrator, already have these permissions.
Required endpoints
You must have access to the following endpoints:
- *.prod.do.dsp.mp.microsoft.com
- *.windowsupdate.com
- *.dl.delivery.mp.microsoft.com
- *.update.microsoft.com
- *.delivery.mp.microsoft.com
- tsfe.trafficshaping.dsp.mp.microsoft.com
Graph API endpoints:
- devicelistenerprod.microsoft.com
- login.windows.net
- payloadprod*.blob.core.windows.net
Open Graph Explorer
For this article, use Graph Explorer to make requests to the Microsoft Graph APIs to retrieve, add, delete, and update data. Graph Explorer is a developer tool that you can use to learn about Microsoft Graph APIs. For more information about using Graph Explorer, see Get started with Graph Explorer.
Warning
- To use the requests listed in this article, sign in with a Microsoft 365 account. If needed, a free one-month trial is available for Microsoft 365 Business Premium.
- Use a test tenant to learn and verify the deployment process. Graph Explorer is intended to be a learning tool. Ensure you understand granting consent and the consent type for Graph Explorer before proceeding.
From a browser, go to Graph Explorer and sign in by using a Microsoft Entra user account.
You might need to enable the
WindowsUpdates.ReadWrite.Allpermission to use the queries in this article. To enable the permission:To make requests:
- Select either GET, POST, PUT, PATCH, or DELETE from the drop-down list for the HTTP method.
- Enter the request into the URL field. The version populates automatically based on the URL.
- If you need to modify the request body, edit the Request body tab.
- Select the Run query button. The results appear in the Response window.
Tip
You typically don't need to specify
content-type: application/jsonfor Graph Explorer, but you can add it by selecting the Headers tab and adding thecontent-typeto the Request headers field as the Key andapplication/jsonas the Value.
Create a driver update policy
A driver update policy defines how driver and firmware updates are approved and deployed. The rings you create in the next section specify the devices that receive the updates.
You can approve updates manually or configure an automatic approval rule. The following example creates a policy with manual approval, so you can review applicable drivers before approving them. An empty approvalRules collection means the policy has no automatic approval rule.
POST https://graph.microsoft.com/beta/admin/windows/updates/policies
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdatePolicy",
"displayName": "Contoso driver policy",
"description": "Driver and firmware updates for pilot devices",
"approvalRules": []
}
The request returns an HTTP status code of 201 Created with the following body, where id is the Policy ID. Use the returned value as {policyId} in later requests:
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdatePolicy",
"id": "{policyId}",
"displayName": "Contoso driver policy",
"description": "Driver and firmware updates for pilot devices",
"approvalRules": [],
"createdDateTime": "2026-11-12T09:00:00Z",
"lastModifiedDateTime": "2026-11-12T09:00:00Z"
}
To use automatic approval instead, include a driverUpdateApprovalRule when you create the policy. Set the approvalRules property as follows:
{
"approvalRules": [
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateApprovalRule",
"deferralInDays": 7
}
]
}
This section shows the approvalRules portion of the policy request, not a complete create request. A driver policy supports at most one automatic approval rule. deferralInDays specifies the automatic-approval deferral in days and must be from 0 through 30, as defined by the approvalRule resource.
Approval-rule deferral controls when content is approved. Ring deferral controls when approved content is offered to devices.
Create a ring and assign Microsoft Entra groups
A driver update ring specifies which devices receive approved updates and when those updates are offered.
Use the Policy ID returned in the previous section to create a ring. In the request body:
- Set
@odata.typeto#microsoft.graph.windowsUpdates.driverUpdateRing. - Use
includedGroupAssignmentto specify the Microsoft Entra groups whose devices you want to target. - Use
excludedGroupAssignmentto specify groups to exclude. Supply an empty assignments collection if there are no exclusions. - Set
deferralInDaysto the ring's deferral period for approved content. The supported range is 0 through 30 days. - Set
isPausedtofalseto allow the ring to offer approved updates.
The following example creates a pilot ring with no additional deferral. Replace {groupId} with your pilot group's Microsoft Entra group ID.
POST https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/rings
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateRing",
"displayName": "Pilot",
"description": "Pilot devices for driver validation",
"includedGroupAssignment": {
"assignments": [
{
"groupId": "{groupId}"
}
]
},
"excludedGroupAssignment": {
"assignments": []
},
"deferralInDays": 0,
"isPaused": false
}
The request returns an HTTP status code of 201 Created with the following body, where id is the Ring ID. Use the returned value as {ringId} in later requests:
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateRing",
"id": "{ringId}",
"displayName": "Pilot",
"description": "Pilot devices for driver validation",
"includedGroupAssignment": {
"assignments": [
{
"groupId": "{groupId}"
}
]
},
"excludedGroupAssignment": {
"assignments": []
},
"deferralInDays": 0,
"isPaused": false,
"createdDateTime": "2026-11-12T09:05:00Z",
"lastModifiedDateTime": "2026-11-12T09:05:00Z"
}
You can create additional rings for a broader rollout. If a broader group contains the pilot devices, exclude the pilot group from the broader ring to avoid overlapping assignments.
Find driver update content to approve
Use the policy's applicableCatalogs collection to review the driver and firmware updates that apply to its targeted devices.
Each update is associated with a unique catalog entry. The returned id is the Catalog ID. Use the selected entry's value as {catalogEntryId} when reviewing devices, creating an approval, or retrieving status.
The following request lists applicable catalog entries for the Policy ID created earlier:
GET https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/applicableCatalogs
The request returns an HTTP status code of 200 OK. The following truncated response shows an applicable catalog entry:
{
"value": [
{
"@odata.type": "#microsoft.graph.windowsUpdates.applicableCatalog",
"id": "{catalogEntryId}",
"deviceCount": 1,
"hasRecommendedDevice": true
}
]
}
deviceCountis the number of applicable devices in the policy for this catalog entry.hasRecommendedDeviceindicates whether the update is recommended for at least one of those devices.
Use the Catalog ID to identify the content consistently across applicability, approval, and reporting requests. Confirm the selected catalog entry before approving it.
Note
Applicability doesn't mean that an update is approved or installed. Use policy approvals to check approval state and the driver installation-status report to check the latest reported device state.
If a collection response includes @odata.nextLink, request that URL exactly as returned to retrieve the next page. Continue until the response no longer includes a next link. Don't construct continuation tokens or treat the first page as the complete result. This rule also applies to the applicable-device and reporting collections later in this article.
Review applicable devices
To list the devices to which a driver applies, use the Policy ID and Catalog ID:
GET https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/applicableCatalogs/{catalogEntryId}/devices
The request returns an HTTP status code of 200 OK with the following body:
{
"value": [
{
"@odata.type": "#microsoft.graph.windowsUpdates.applicableDevice",
"id": "{deviceId}",
"isRecommended": true
}
]
}
Here, id is the Microsoft Entra Device ID, shown as {deviceId} in the examples. isRecommended indicates whether the driver is recommended for that device. The policy-level hasRecommendedDevice flag doesn't mean that the update is recommended for every applicable device.
Review applicability across policies
To review driver applicability across policies, use applicableCatalogSummaries:
GET https://graph.microsoft.com/beta/admin/windows/updates/data/applicableCatalogSummaries
The request returns an HTTP status code of 200 OK with the following truncated body:
{
"value": [
{
"@odata.type": "#microsoft.graph.windowsUpdates.applicableCatalogSummary",
"id": "{catalogEntryId}",
"aggregatedDeviceCount": 1,
"hasRecommendedDevice": true,
"policies": [
"{policyId}"
]
}
]
}
The response includes the applicable-device count and the Policy IDs associated with the catalog entry. To list the devices included in a summary, use its Catalog ID:
GET https://graph.microsoft.com/beta/admin/windows/updates/data/applicableCatalogSummaries/{catalogEntryId}/aggregatedDevices
This request returns 200 OK with a collection of applicableDevice objects, using the id and isRecommended properties shown in the previous section. Use this cross-policy view rather than adding policy-level device counts, because more than one policy can target a device.
Approve content for deployment
Approve a driver or firmware update by adding a policyApproval to the policy. Use the Catalog ID returned when you reviewed applicability.
The following example approves the driver for the policy created earlier:
POST https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/approvals
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.windowsUpdates.policyApproval",
"catalogEntryId": "{catalogEntryId}",
"status": "approved"
}
The request returns an HTTP status code of 201 Created with the following body, where id is the Approval ID. Use the returned value as {approvalId} in later requests:
{
"@odata.type": "#microsoft.graph.windowsUpdates.policyApproval",
"id": "{approvalId}",
"catalogEntryId": "{catalogEntryId}",
"status": "approved",
"approvedBy": "user",
"startDateTime": "2026-11-12T09:15:00Z",
"createdDateTime": "2026-11-12T09:15:00Z",
"lastModifiedDateTime": "2026-11-12T09:15:00Z"
}
When an approval is created, status must be approved. You can include an optional startDateTime to schedule when the approved content can start being offered. Use a future UTC timestamp in ISO 8601 format. If the property is omitted, the service uses the current time. Ring settings still determine how the content is offered.
Approval is policy-scoped. If you want to deploy the same driver through another policy, approve it in that policy as well.
For a policy with automatic approval, review its approvals before creating one manually:
GET https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/approvals
The request returns 200 OK with the policy's approvals. approvedBy is system for an automatic approval and user for an administrator-created approval.
Pause a content approval
To pause an approved update within a policy, set the approval's status to suspended. Use the Policy ID and Approval ID:
PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/approvals/{approvalId}
Content-Type: application/json
{
"status": "suspended"
}
The request returns an HTTP status code of 200 OK with the updated approval. The following response is truncated:
{
"@odata.type": "#microsoft.graph.windowsUpdates.policyApproval",
"id": "{approvalId}",
"catalogEntryId": "{catalogEntryId}",
"status": "suspended"
}
This changes the approval for the selected policy. To pause only one ring, use the ring's isPaused setting instead. A successful response confirms the approval change, not the installation state of any device. Use the driver report to check device state.
Resume a paused approval
To resume a paused approval, set the status back to approved:
PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/approvals/{approvalId}
Content-Type: application/json
{
"status": "approved"
}
The request returns an HTTP status code of 200 OK with the updated approval. The existing Approval ID is retained. The content can be offered again according to the policy's ring settings.
Pause a ring
To pause update offers for one ring without changing the approval for other rings, set the ring's isPaused property to true. Use the Policy ID and Ring ID:
PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/rings/{ringId}
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateRing",
"isPaused": true
}
The request returns an HTTP status code of 200 OK with the updated ring. The following response is truncated:
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateRing",
"id": "{ringId}",
"displayName": "Pilot",
"isPaused": true
}
The pause applies to this ring. Other rings retain their existing settings. Pausing an update offer isn't an uninstall or rollback operation.
Resume a paused ring
To resume update offers for the ring, set isPaused to false:
PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/{policyId}/rings/{ringId}
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateRing",
"isPaused": false
}
The request returns an HTTP status code of 200 OK with the updated ring. A suspended content approval must also be resumed before that content can be offered.
View driver installation status
The driver reporting APIs return the latest reported rollout status for devices. These APIs are read-only. They don't approve, deploy, pause, or uninstall a driver.
Check the client reporting setting
Before using client-state reporting, review the tenant's Data Processor Service for Windows (DPSW) setting:
GET https://graph.microsoft.com/beta/admin/windows/updates/tenantSettings
The request returns an HTTP status code of 200 OK with the tenant setting:
{
"@odata.type": "#microsoft.graph.windowsUpdates.tenantSetting",
"areDataProcessorServiceForWindowsFeaturesEnabled": false
}
If DPSW features aren't enabled and you need client-reporting data, an authorized administrator can enable them through tenantSettings:
PATCH https://graph.microsoft.com/beta/admin/windows/updates/tenantSettings
Content-Type: application/json
{
"areDataProcessorServiceForWindowsFeaturesEnabled": true
}
The request returns 200 OK with areDataProcessorServiceForWindowsFeaturesEnabled set to true. This changes a tenant-wide setting and requires WindowsUpdates.ReadWrite.All.
A successful settings update confirms the tenant configuration, not that a device reported an event. Check lastEventDateTime in the status response to see when the latest known event occurred. Don't interpret a newly enabled setting as confirmation of an installation or immediate reporting-data availability.
List drivers in the report
Use data/drivers to list driver and firmware updates represented in the report:
GET https://graph.microsoft.com/beta/admin/windows/updates/data/drivers
The request returns an HTTP status code of 200 OK with the following truncated body:
{
"value": [
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateReport",
"id": "{catalogEntryId}",
"displayName": "Contoso Display Driver 31.0.101.5590",
"manufacturer": "Contoso",
"class": "Display",
"version": "31.0.101.5590",
"releaseDateTime": "2026-09-15T00:00:00Z"
}
]
}
The returned id is the Catalog ID used to retrieve device statuses. The driver report uses the property name class, while driver catalog metadata uses driverClass.
Get the status of each device
Use the Catalog ID with deviceStatuses. The following example filters the results to the Policy ID created earlier:
GET https://graph.microsoft.com/beta/admin/windows/updates/data/drivers/{catalogEntryId}/deviceStatuses?$filter=policyId%20eq%20%27{policyId}%27
The request returns an HTTP status code of 200 OK with the following body:
{
"value": [
{
"@odata.type": "#microsoft.graph.windowsUpdates.driverUpdateDeviceStatus",
"id": "{statusId}",
"aadDeviceId": "{deviceId}",
"policyId": "{policyId}",
"ringId": "{ringId}",
"policyName": "Contoso driver policy",
"ringName": "Pilot",
"deviceName": "Contoso-Laptop-01",
"clientState": "installed",
"clientSubstate": "updateInstalled",
"serviceState": "offering",
"serviceSubstate": "offerReady",
"lastEventDateTime": "2026-11-12T10:00:00Z"
}
]
}
Use these properties to interpret the result:
serviceStateandserviceSubstatedescribe the service's rollout state. For example,offeringandofferReadyindicate that the service is offering the update. They don't confirm installation.clientStateandclientSubstatedescribe progress reported by the Windows device. In this example,installedandupdateInstalledindicate the latest reported installation result.aadDeviceIdis the Microsoft Entra Device ID. Use it to identify the device rather than relying only ondeviceName.policyIdandringIdidentify the policy and ring associated with the status. Keep those fields when correlating results, because a device can appear in more than one policy or ring.id, shown as{statusId}, is the status record's identifier. Treat it as opaque rather than constructing or parsing it. Use the explicit device, policy, and ring fields when joining results.lastEventDateTimeidentifies the latest known status event. Check it when assessing how recent a result is.
The service can still report offering after the client reports installed. The fields describe different parts of the rollout. For the complete set of values, see driverUpdateDeviceStatus.
The resource reports the latest rollout status for a device and ring, not an event-by-event history. Read installation state from the device-status response rather than inferring it from an applicability count or an approval. An empty result doesn't establish that a driver is installed or failed. Preserve unknownFutureValue as an unknown state rather than treating it as success or failure.
If a device is missing from the result, check the following:
- Confirm targeting through policyAssignments. That resource exposes the Microsoft Entra device identifier as
azureAdDeviceId, while this status report usesaadDeviceId. - Confirm that the selected catalog entry applies to the device and that the intended policy has an approval for it.
- Check Windows Update scan activity, the client-reporting setting, and the driver client-policy settings. A missing or stale report isn't an installation result.
Unenroll devices
When a device no longer requires driver update management, use unenrollAssets to stop managing that update category. Review the device's policy assignments and Windows Update configuration before unenrolling it.
Unenrolling from driver management doesn't unenroll the device from other update categories. Depending on the device's Windows Update configuration, it might start receiving other driver updates from Windows Update. Review that behavior before removing management.
To unenroll a device, POST to updatableAssets/unenrollAssets. In the request body, specify:
driveras theupdateCategory- The Microsoft Entra Device ID of the device as
id
POST https://graph.microsoft.com/beta/admin/windows/updates/updatableAssets/unenrollAssets
Content-Type: application/json
{
"updateCategory": "driver",
"assets": [
{
"@odata.type": "#microsoft.graph.windowsUpdates.azureADDevice",
"id": "{deviceId}"
}
]
}
The request returns an HTTP status code of 202 Accepted with no response body. This status code confirms that the request was accepted, not that all unenrollment processing has completed.
Policy considerations for drivers
Approving a driver doesn't override Windows Update client settings that prevent the device from receiving or installing it.
Policies that exclude drivers
A device can have applicable driver content but not install an approved update if driver updates are blocked. Check the policies that apply to the device:
- Group Policy: Do not include drivers with Windows Updates blocks driver updates when enabled.
- CSP: ExcludeWUDriversInQualityUpdate set to
1excludes drivers. - Intune update ring: Windows drivers set to
Blockprevents driver updates. UseAllowwhen you intend to deploy them.
Policies that define the driver update source
Set the driver scan source to Windows Update when using Windows Autopatch for driver updates. Review SetPolicyDrivenUpdateSourceForDriverUpdates. A value of 0 selects Windows Update.
If the driver scan source is Windows Server Update Services (WSUS), Windows Autopatch doesn't receive the Windows Update inventory events needed to report driver applicability for the device.