Update privilegedapproval

Namespace: microsoft.graph


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.


This version of the Privileged Identity Management (PIM) API for Azure Active Directory (Azure AD) roles is deprecated and stopped returning data on May 31, 2021. Use the new PIM v3 API for managing Azure AD roles or learn how to migrate.

Update the properties of privilegedapproval object.


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

HTTP request

PATCH /privilegedApproval/{id}

Optional request headers

Name Description
Authorization Bearer {token}. Required.

Request body

In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance you shouldn't include existing values that haven't changed.

Property Type Description
approvalDuration Duration
approvalState string Possible values are: pending, approved, denied, aborted, canceled.
approvalType String
approverReason String
endDateTime DateTimeOffset
requestorReason String
roleId String
startDateTime DateTimeOffset
userId String


If successful, this method returns a 204 No Content response code

Note that the tenant needs to be registered to PIM. Otherwise, the HTTP 403 Forbidden status code will be returned.



Here is an example of the request.

PATCH https://graph.microsoft.com/beta/privilegedApproval/{requestId}
Content-type: application/json

  "approvalState": "approvalState-value",
  "approverReason": "approverReason-value"

Here is an example of the response. Note: The response object shown here might be shortened for readability.

HTTP/1.1 204 No Content