Use this call to check the status of an export action after a bulk data long request is initiated. You can use it to check how many pages are available to download.
This lets an integration monitor progress and determine when the requested data is ready to download.
Note: To use this call, you must be a Workspace Administrator.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/views/{viewId}/readRequests/{requestId}
Parameters
| Parameters | Details |
{workspaceId} |
|
{modelId} |
|
{viewId} |
|
{requestId} |
|
Curl example
curl -X GET /
'https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/views/{viewId}/readRequests/{requestId}' \
-H 'Authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Accept: application/json'
Response
Response scenarios
- When
requestStateisCOMPLETEandsuccessfulistrue, the export has completed successfully and the user can download all the pages. - When
requestStateisCOMPLETEandsuccessfulisfalse, this means the export failed. Retry and initiate a new export. - When
requestStateisIN_PROGRESSthe export has not yet completed, but you can download the available pages indicated by theavailablePagesfield. - When
requestStateisNOT_STARTEDthen simply check the status again. - When
requestStateisCANCELLEDthen this request is completed by a 'DELETE' call.
We recommend you delete the last failed export before initiating a new export, using the delete export endpoint.
Response 200 body
{
"meta": {
"schema": "https://api.anaplan.com/2/0/objects/viewReadRequest"
},
"status": {
"code": 200,
"message": "Success"
},
"viewReadRequest": {
"requestId": "0A06B0739F0E47BB92E2326C603D86EC",
"viewId": 101000000014,
"requestState": "COMPLETE",
"url": "https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/views/{viewId}/readRequests/{requestId}",
"availablePages": 100,
"successful": true
}
}
Following is the response when the large read request is in progress.
{
"meta": {
"schema": "https://api.anaplan.com/2/0/objects/viewReadRequest"
},
"status": {
"code": 200,
"message": "Success"
},
"viewReadRequest": {
"requestId": "0A06B0739F0E47BB92E2326C603D86EC",
"viewId": 101000000014,
"requestState": "IN_PROGRESS",
"url": "https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/views/{viewId}/readRequests/{requestId}",
"availablePages": 50,
"successful": true
}
}