| title | Create customDataProvidedResourceUploadSession |
|---|---|
| description | Create a new customDataProvidedResourceUploadSession object. |
| author | pratima-cloudknox |
| ms.date | 10/09/2025 |
| ms.localizationpriority | medium |
| ms.subservice | entra-id-governance |
| doc_type | apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Create a new customDataProvidedResourceUploadSession object.
[!INCLUDE national-cloud-support]
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. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
[!INCLUDE rbac-entitlement-catalog-owner-write]
POST /identityGovernance/entitlementManagement/accessPackageCatalogs/{accessPackageCatalogId}/accessPackageResources/{accessPackageResourceId}/uploadSessions| Header | Value |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
In the request body, supply a JSON representation of the customDataProvidedResourceUploadSessionRequest object.
You can specify the following properties when creating a customDataProvidedResourceUploadSession.
| Property | Type | Description |
|---|---|---|
| source | String | The name of the Custom Data Provided Resource for which the customer is uploading data. Required. |
| type | String | The odata type representing the columns of the CSV that are expected to be uploaded in this session. The possible values are: accessReviewDataUploadTriggerCallbackData. Required. |
| data | accessReviewResourceDataUploadSessionContextData | Contains information about the access review definition and access review instance for which the data is being uploaded. Required. |
If successful, this method returns a 201 Created response code and a customDataProvidedResourceUploadSession object in the response body.
The following example shows a request.
POST https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageCatalogs/6f4b1c6f-2a3d-4f8e-9b7a-5c1e2d3f4a6b/accessPackageResources/7b8a1c6f-2a3d-4f8e-9b7a-5c1e2d3f4a6b/uploadSessions
Content-Type: application/json
{
"source": "BuildingAccessData",
"type": "#microsoft.graph.accessReviewDataUploadTriggerCallbackData",
"data": {
"accessReviewId": "9e4b1c6f-2a3d-4f8e-9b7a-5c1e2d3f4a6b",
"accessReviewInstanceId": "6a9b1c6f-2a3d-4f8e-9b7a-5c1e2d3f4a6b"
}
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 201 Created
Content-Type: application/json
{
"id": "23f27c15-72f9-45fe-9e9c-e3d8f75bdc44",
"status": "Active",
"isUploadDone": false,
"stats": {
"filesUploaded": 0,
"totalBytesUploaded": 0,
},
"files": [],
"createdDateTime": "2024-03-06T01:35:12.123Z",
"expirationDateTime": "2024-03-07T01:35:12.123Z"
}