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.
Namespace: microsoft.graph
Important: Microsoft supports Intune /beta APIs, but they are subject to more frequent change. Microsoft recommends using version v1.0 when possible. Check an API's availability in version v1.0 using the Version selector.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Update the properties of a windowsDriverUpdateProfile object.
This API is available in the following national cloud deployments.
| Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ |
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) | DeviceManagementConfiguration.ReadWrite.All |
| Delegated (personal Microsoft account) | Not supported. |
| Application | DeviceManagementConfiguration.ReadWrite.All |
HTTP Request
PATCH /deviceManagement/windowsDriverUpdateProfiles/{windowsDriverUpdateProfileId}
Request headers
| Header | Value |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Accept | application/json |
Request body
In the request body, supply a JSON representation for the windowsDriverUpdateProfile object.
The following table shows the properties that are required when you create the windowsDriverUpdateProfile.
| Property | Type | Description |
|---|---|---|
| id | String | The Intune policy id. |
| displayName | String | The display name for the profile. |
| description | String | The description of the profile which is specified by the user. |
| approvalType | driverUpdateProfileApprovalType | Driver update profile approval type. For example, manual or automatic approval. The possible values are: manual, automatic. |
| deviceReporting | Int32 | Number of devices reporting for this profile |
| newUpdates | Int32 | Number of new driver updates available for this profile. |
| deploymentDeferralInDays | Int32 | Deployment deferral settings in days, only applicable when ApprovalType is set to automatic approval. |
| createdDateTime | DateTimeOffset | The date time that the profile was created. |
| lastModifiedDateTime | DateTimeOffset | The date time that the profile was last modified. |
| roleScopeTagIds | String collection | List of Scope Tags for this Driver Update entity. |
| inventorySyncStatus | windowsDriverUpdateProfileInventorySyncStatus | Driver inventory sync status for this profile. |
Response
If successful, this method returns a 200 OK response code and an updated windowsDriverUpdateProfile object in the response body.
Example
Request
Here is an example of the request.
PATCH https://graph.microsoft.com/beta/deviceManagement/windowsDriverUpdateProfiles/{windowsDriverUpdateProfileId}
Content-type: application/json
Content-length: 555
{
"@odata.type": "#microsoft.graph.windowsDriverUpdateProfile",
"displayName": "Display Name value",
"description": "Description value",
"approvalType": "automatic",
"deviceReporting": 15,
"newUpdates": 10,
"deploymentDeferralInDays": 8,
"roleScopeTagIds": [
"Role Scope Tag Ids value"
],
"inventorySyncStatus": {
"@odata.type": "microsoft.graph.windowsDriverUpdateProfileInventorySyncStatus",
"lastSuccessfulSyncDateTime": "2017-01-01T00:03:28.120883-08:00",
"driverInventorySyncState": "success"
}
}
Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 727
{
"@odata.type": "#microsoft.graph.windowsDriverUpdateProfile",
"id": "55bcc52a-c52a-55bc-2ac5-bc552ac5bc55",
"displayName": "Display Name value",
"description": "Description value",
"approvalType": "automatic",
"deviceReporting": 15,
"newUpdates": 10,
"deploymentDeferralInDays": 8,
"createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
"roleScopeTagIds": [
"Role Scope Tag Ids value"
],
"inventorySyncStatus": {
"@odata.type": "microsoft.graph.windowsDriverUpdateProfileInventorySyncStatus",
"lastSuccessfulSyncDateTime": "2017-01-01T00:03:28.120883-08:00",
"driverInventorySyncState": "success"
}
}