Create windowsDriverUpdateProfile

Namespace: microsoft.graph

Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.

Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Create a new 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

POST /deviceManagement/windowsDriverUpdateProfiles

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. 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 201 Created response code and a windowsDriverUpdateProfile object in the response body.

Example

Request

Here is an example of the request.

POST https://graph.microsoft.com/beta/deviceManagement/windowsDriverUpdateProfiles
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 201 Created
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"
  }
}