Update userExperienceAnalyticsScoreHistory

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.

Update the properties of a userExperienceAnalyticsScoreHistory object.

Prerequisites

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) DeviceManagementManagedDevices.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application DeviceManagementManagedDevices.ReadWrite.All

HTTP Request

PATCH /deviceManagement/userExperienceAnalyticsScoreHistory/{userExperienceAnalyticsScoreHistoryId}

Request headers

Header Value
Authorization Bearer <token> Required.
Accept application/json

Request body

In the request body, supply a JSON representation for the userExperienceAnalyticsScoreHistory object.

The following table shows the properties that are required when you create the userExperienceAnalyticsScoreHistory.

Property Type Description
id String The unique identifier of the user experience analytics device startup process.
startupDateTime DateTimeOffset The user experience analytics device startup date time.
startupScore Int32 User experience analytics device startup score. Score will be in the range 0-100, 100 is the ideal score.
coreBootScore Int32 The user experience analytics device core boot score. Score will be in the range 0-100, 100 is the ideal score.
coreSigninScore Int32 The User experience analytics device core sign-in score. Score will be in the range 0-100, 100 is the ideal score.
recommendedSoftwareScore Int32 The User experience analytics device core sign-in score. Score will be in the range 0-100, 100 is the ideal score.
restartScore Int32 Restart score. Score will be in the range 0-100, 100 is the ideal score, 0 indicates excessive restarts. Valid values 0 to 9999999

Response

If successful, this method returns a 200 OK response code and an updated userExperienceAnalyticsScoreHistory object in the response body.

Example

Request

Here is an example of the request.

PATCH https://graph.microsoft.com/beta/deviceManagement/userExperienceAnalyticsScoreHistory/{userExperienceAnalyticsScoreHistoryId}
Content-type: application/json
Content-length: 266

{
  "@odata.type": "#microsoft.graph.userExperienceAnalyticsScoreHistory",
  "startupDateTime": "2017-01-01T00:03:13.1084278-08:00",
  "startupScore": 12,
  "coreBootScore": 13,
  "coreSigninScore": 15,
  "recommendedSoftwareScore": 8,
  "restartScore": 12
}

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: 315

{
  "@odata.type": "#microsoft.graph.userExperienceAnalyticsScoreHistory",
  "id": "d15e3ba8-3ba8-d15e-a83b-5ed1a83b5ed1",
  "startupDateTime": "2017-01-01T00:03:13.1084278-08:00",
  "startupScore": 12,
  "coreBootScore": 13,
  "coreSigninScore": 15,
  "recommendedSoftwareScore": 8,
  "restartScore": 12
}