Use this call to check on the status of an export action after a bulk data long request is initiated. This enables you to start the download of the pages from the directory where you download the export file.
This lets the integration monitor progress and determine when the requested list data is ready to download.
Note: To use this call, you must be a Workspace Administrator.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/lists/{listId}/readRequests/{requestID}
Parameters
| Parameters | Details |
{workspaceId} |
|
{modelId} |
|
{listId} |
|
{requestId} |
|
Curl example
curl -X GET / 'https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/lists/{listId}/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 start a new export. - When
requestStateisIN_PROGRESSthe export hasn't yet completed, but you can download the available pages shown by theavailablePagesfield. - When
requestStateisNOT_STARTEDthen check the status again. - When
requestStateisCANCELLEDthen this request is completed by a 'DELETE' call.
Response 200 body
{
"meta": {
"schema": "https://api.anaplan.com/2/0/objects/listReadRequest"
},
"status": {
"code": 200,
"message": "Success"
},
"listReadRequest": {
"requestId": "0A06B0739F0E47BB92E2326C603D86EC",
"listId": 101000000014,
"requestState": "COMPLETE",
"url": "https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/lists/{listId}/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/listReadRequest"
},
"status": {
"code": 200,
"message": "Success"
},
"listReadRequest": {
"requestId": "0A06B0739F0E47BB92E2326C603D86EC",
"listId": 101000000014,
"requestState": "IN_PROGRESS",
"url": "https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/lists/{listId}/readRequests/{requestId}",
"availablePages": 50,
"successful": true
}
}