Programmatic controls for Windows feature updates

Use Windows Autopatch programmatic controls to approve and schedule software updates through the Microsoft Graph API. You can call the API directly, use a Graph SDK, or integrate them with a management tool such as Microsoft Intune.

This article uses Graph Explorer to walk through the process of deploying a Windows feature update to clients. In this article, you can learn how to:

Important

The Windows Autopatch feature update Graph APIs use the beta endpoint and are subject to change.

Prerequisites

Ensure that you meet all of the Windows Autopatch prerequisites.

Permissions

The following permissions are needed for the queries listed in this article:

Some roles, such as the Windows Update deployment administrator, already have these permissions.

Required endpoints

You must have access to the following endpoints:

Windows Update 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.
  1. From a browser, go to Graph Explorer and sign in by using a Microsoft Entra user account.

  2. You might need to enable the WindowsUpdates.ReadWrite.All permission to use the queries in this article. To enable the permission:

    1. Select the Modify permissions tab in Graph Explorer.
    2. In the permissions dialog box, select the WindowsUpdates.ReadWrite.All permission, and then select Consent. You might need to sign in again to grant consent. Screenshot of the modify permissions tab in Graph Explorer.
  3. To make requests:

    1. Select either GET, POST, PUT, PATCH, or DELETE from the drop-down list for the HTTP method.
    2. Enter the request into the URL field. The version populates automatically based on the URL.
    3. If you need to modify the request body, edit the Request body tab.
    4. Select the Run query button. The results appear in the Response window.

    Tip

    You typically don't need to specify content-type: application/json for Graph Explorer, but you can add it by selecting the Headers tab and adding the content-type to the Request headers field as the Key and application/json as the Value.

Create a feature update policy

A feature update policy governs how feature updates are deployed to the devices in its rings. Devices are enrolled in feature update management automatically, so you don't need to enroll them explicitly.

Note

As long as a device is managed by Windows Autopatch for feature updates, it doesn't receive other feature updates from Windows Update unless you approve them in a policy. A device is offered an approved feature update only if it isn't already running that version or a later one.

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

{ 
  "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdatePolicy", 
  "displayName": "Display Name value", 
  "description": "Description value", 
  "approvalRules": [] 
} 

The request returns an HTTP status code of 201 Created with the following truncated body, where id is the Policy ID:

{ 
  "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdatePolicy", 
  "displayName": "Display Name value", 
  "description": "Description value", 
  "id": "1cf00cc5-7b19-4193-9a47-6404c57c0cbb", 
  "createdDateTime": "2026-11-10T23:39:44.971849Z", 
  "lastModifiedDateTime": "2026-11-10T23:39:54Z", 
  "approvalRules": [] 
}

Create a ring and assign Microsoft Entra groups

After you create a policy, create rings to phase the rollout and assign Microsoft Entra groups to each ring. Use the Policy ID in the URL. The following ring settings control how the feature update is offered:

  • deferralInDays is the number of days to defer the update after you approve it. The value must be between 0 and 30.

  • offerIntervalInDays is how often, in days, a new subset of devices gets the update. Set it to 0 to offer the update to all devices in the ring at once.

  • offerDurationInDays is the total length of the gradual rollout window, in days. It's used only when offerIntervalInDays is 1 or greater, and offerIntervalInDays must be less than or equal to it.

  • isOfferOptional indicates whether the update is offered to users as optional instead of required.

The following example creates a ring that offers the update to a new subset of devices every two days over a 14-day window:

POST https://graph.microsoft.com/beta/admin/windows/updates/policies/1cf00cc5-7b19-4193-9a47-6404c57c0cbb/rings 
Content-Type: application/json 
  
{ 
  "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdateRing", 
  "displayName": "Pilot", 
  "description": "Pilot devices", 
  "includedGroupAssignment": { 
    "assignments": [ 
      { 
        "groupId": "3ee6cc4e-b04b-4cfe-8576-5daf28443498" 
      } 
    ] 
  }, 
  "excludedGroupAssignment": { 
    "assignments": [] 
  }, 
  "deferralInDays": 0, 
  "isPaused": false, 
  "isOfferOptional": false, 
  "offerDurationInDays": 14, 
  "offerIntervalInDays": 2 
}

The request returns an HTTP status code of 201 Created with the following body, where id is the Ring ID:

{ 
  "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdateRing", 
  "createdDateTime": "2026-11-10T23:51:24Z", 
  "deferralInDays": 0, 
  "description": "Pilot devices", 
  "displayName": "Pilot", 
  "excludedGroupAssignment": { 
    "assignments": [] 
  }, 
  "id": "e56f5f2b-13fe-4334-8e03-484010edeb73", 
  "includedGroupAssignment": { 
    "assignments": [ 
      { 
        "groupId": "3ee6cc4e-b04b-4cfe-8576-5daf28443498" 
      } 
    ] 
  }, 
  "isOfferOptional": false, 
  "isPaused": false, 
  "lastModifiedDateTime": "2026-11-10T23:51:24Z", 
  "offerDurationInDays": 14, 
  "offerIntervalInDays": 2 
} 

Find feature update content to approve

Each feature update is associated with a unique catalog entry. The id returned is the Catalog ID that you use to create a deployment. Feature updates are deployable until they reach their support retirement dates. For more information, see the support lifecycle dates for Windows 10 and Windows 11 Enterprise and Education editions.

To list all deployable feature update catalog entries:

GET https://graph.microsoft.com/beta/admin/windows/updates/catalog/entries?$filter=isof('microsoft.graph.windowsUpdates.featureUpdateCatalogEntry')

The following truncated response displays a Catalog ID of d9049ddb-0ca8-4bc1-bd3c-41a456ef300f for the Windows 11, version 22H2 feature update:

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#admin/windows/updates/catalog/entries",
    "value": [
        {
            "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry",
            "id": "d9049ddb-0ca8-4bc1-bd3c-41a456ef300f",
            "displayName": "Windows 11, version 22H2",
            "deployableUntilDateTime": "2025-10-14T00:00:00Z",
            "releaseDateTime": "2022-09-20T00:00:00Z",
            "version": "Windows 11, version 22H2",
            "buildNumber": "22621"
        }
    ]
}

To list the catalog entries that apply to the devices targeted by a policy, use the Policy ID:

GET https://graph.microsoft.com/beta/admin/windows/updates/policies/1cf00cc5-7b19-4193-9a47-6404c57c0cbb/applicableCatalogs

Approve content for deployment

Content is deployed to the devices in the assigned groups when an approval is added to the policy. Add an approval for the Catalog ID to the policy with the Policy ID 1cf00cc5-7b19-4193-9a47-6404c57c0cbb. The startDateTime property is optional. If you omit it, the content can start being offered immediately.

POST https://graph.microsoft.com/beta/admin/windows/updates/policies/1cf00cc5-7b19-4193-9a47-6404c57c0cbb/approvals 
Content-Type: application/json 

{ 
  "@odata.type": "#microsoft.graph.windowsUpdates.policyApproval", 
  "catalogEntryId": "d9049ddb-0ca8-4bc1-bd3c-41a456ef300f", 
  "startDateTime": "2026-12-01T12:00:00Z", 
  "status": "approved" 
}

The request returns an HTTP status code of 201 Created with a body that includes the approval's id, which is the Approval ID.

Pause a content approval

While a deployment is in progress, you can update a ring's assignments to add more devices to the deployment. You can also prevent the content from being offered to devices that didn't already receive it by setting the status property of the approval to suspended.

PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/1cf00cc5-7b19-4193-9a47-6404c57c0cbb/approvals/30d62e80-4028-4b1c-a458-da06c33173b0 
Content-Type: application/json 

{ 
  "status": "suspended" 
} 

The request returns an HTTP status code of 200 OK with the updated approval.

Resume a paused approval

To resume offering the content, set the status property of the approval back to approved.

PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/1cf00cc5-7b19-4193-9a47-6404c57c0cbb/approvals/30d62e80-4028-4b1c-a458-da06c33173b0 
Content-Type: application/json 

{ 
"status": "approved" 
}

Pause a ring

To stop offering feature updates to the devices assigned to a ring, set the isPaused property of the ring to true. Use the Policy ID and Ring ID in the URL.


PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/1cf00cc5-7b19-4193-9a47-6404c57c0cbb/rings/e56f5f2b-13fe-4334-8e03-484010edeb73 
Content-Type: application/json 

{ 
  "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdateRing", 
  "isPaused": true 
} 

Resume a paused ring

To resume offering feature updates to the ring, set isPaused back to false.

PATCH https://graph.microsoft.com/beta/admin/windows/updates/policies/1cf00cc5-7b19-4193-9a47-6404c57c0cbb/rings/e56f5f2b-13fe-4334-8e03-484010edeb73 
Content-Type: application/json 

{ 
  "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdateRing", 
  "isPaused": false 
} 

Unenroll devices

Devices are enrolled automatically, but Windows Autopatch doesn't automatically unenroll them from feature update management. When a device no longer requires management, unenroll it manually. The device is no longer managed by Windows Autopatch for the specified update category. Depending on the device's policy configuration, it might start receiving updates from Windows Update.

To unenroll a device, POST to updatableAssets using unenrollAssets. In the request body, specify:

  • The Microsoft Entra Device ID as id
  • The updateCategory (for example, feature or driver)

The following example removes feature enrollment for two devices:

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

{ 
  "updateCategory": "feature", 
  "assets": [ 
    { 
      "@odata.type": "#microsoft.graph.windowsUpdates.azureADDevice", 
      "id": "fb95f07d-9e73-411d-99ab-7eca3a5122b1" 
    } 
  ] 
}

The request returns an HTTP status code of 204 No Content.