|
| 1 | +--- |
| 2 | +title: "accessReviewInstance: batchApplyCustomDataProvidedResourceDecisions" |
| 3 | +description: "Set the apply result on a custom data provided resource decision in a batch." |
| 4 | +author: "dotnet-enthusiast" |
| 5 | +ms.date: 04/01/2026 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "entra-id-governance" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# accessReviewInstance: batchApplyCustomDataProvidedResourceDecisions |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Enables reviewers to set the `applyResult` and `applyDescription` on all [accessReviewInstanceDecisionItem](../resources/accessreviewinstancedecisionitem.md) objects in batches by using **customDataProvidedResourceId**. |
| 18 | + |
| 19 | +**NOTE:** The access review instance must be in an `Applying` state. |
| 20 | + |
| 21 | +[!INCLUDE [national-cloud-support](../../includes/all-clouds.md)] |
| 22 | + |
| 23 | +## Permissions |
| 24 | + |
| 25 | +Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 26 | + |
| 27 | +<!-- { |
| 28 | + "blockType": "permissions", |
| 29 | + "name": "accessreviewinstance-batchapplycustomdataprovidedresourcedecisions-permissions" |
| 30 | +} |
| 31 | +--> |
| 32 | +[!INCLUDE [permissions-table](../includes/permissions/accessreviewinstance-batchapplycustomdataprovidedresourcedecisions-permissions.md)] |
| 33 | + |
| 34 | +[!INCLUDE [rbac-access-reviews-apis-write](../includes/rbac-for-apis/rbac-access-reviews-apis-write.md)] |
| 35 | + |
| 36 | +## HTTP request |
| 37 | + |
| 38 | +<!-- { |
| 39 | + "blockType": "ignored" |
| 40 | +} |
| 41 | +--> |
| 42 | +``` http |
| 43 | +POST /identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinitionId}/instances/{accessReviewInstanceId}/batchApplyCustomDataProvidedResourceDecisions |
| 44 | +``` |
| 45 | + |
| 46 | +## Request headers |
| 47 | + |
| 48 | +|Name|Description| |
| 49 | +|:---|:---| |
| 50 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 51 | +|Content-Type|application/json. Required.| |
| 52 | +|x-accessreviews-version|`vNext`. Required.| |
| 53 | + |
| 54 | +## Request body |
| 55 | + |
| 56 | +In the request body, supply a JSON representation of the parameters. |
| 57 | + |
| 58 | +The following table lists the parameters when you call this action. |
| 59 | + |
| 60 | +|Parameter|Type|Description| |
| 61 | +|:---|:---|:---| |
| 62 | +|applyResult|[accessReviewInstanceDecisionItemApplyResult](../resources/enums.md)|The `applyResult` for the entity being reviewed. The possible values are: `new`, `appliedSuccessfully`, `appliedWithUnknownFailure`, `appliedSuccessfullyButObjectNotFound`, `applyNotSupported`. Required. | |
| 63 | +|applyDescription|String|If supplied, a description for the `applyResult`. Optional. | |
| 64 | +|customDataProvidedResourceId|String|The `applyResult` will be set on all **accessReviewInstanceDecisionItems** whose custom data provided resource `id` matches the supplied **customDataProvidedResourceId**. Required. | |
| 65 | + |
| 66 | + |
| 67 | +## Response |
| 68 | + |
| 69 | +If successful, this action returns a `202 Accepted` response code. |
| 70 | + |
| 71 | +## Examples |
| 72 | + |
| 73 | +### Request |
| 74 | + |
| 75 | +The following example shows a request. |
| 76 | +<!-- { |
| 77 | + "blockType": "request", |
| 78 | + "name": "accessreviewinstancethis.batchapplycustomdataprovidedresourcedecisions" |
| 79 | +} |
| 80 | +--> |
| 81 | +``` http |
| 82 | +POST https://graph.microsoft.com/beta/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinitionId}/instances/{accessReviewInstanceId}/batchApplyCustomDataProvidedResourceDecisions |
| 83 | +Content-Type: application/json |
| 84 | +
|
| 85 | +{ |
| 86 | + "applyResult": "appliedSuccessfully", |
| 87 | + "applyDescription": "Access was removed from production application: GitHub-app.", |
| 88 | + "customDataProvidedResourceId": "5c728447-be5c-4565-b4d3-cb248b609891" |
| 89 | +} |
| 90 | +``` |
| 91 | + |
| 92 | + |
| 93 | +### Response |
| 94 | + |
| 95 | +The following example shows the response. |
| 96 | +>**Note:** The response object shown here might be shortened for readability. |
| 97 | +<!-- { |
| 98 | + "blockType": "response", |
| 99 | + "truncated": true |
| 100 | +} |
| 101 | +--> |
| 102 | +``` http |
| 103 | +HTTP/1.1 202 Accepted |
| 104 | +``` |
| 105 | + |
0 commit comments