Use this call to delete or cancel an initiated read request. This removes all the pages from the file store and stops the ongoing read request.
This cleans up temporary read-request output when the integration has finished downloading the data.
Notes:
- To use this call, you must be a Workspace Administrator.
- As a best practice, use this call to clear all pages from completed exports as soon as you download all pages. Doing so will make space available for future exports.
- An expiration timer starts after the read request is initiated, with the following conditions:
- 30 minutes after no activity is recorded for that read request, the system will reclaim that space.
- The expiration timer resets back to 30 minutes if the requested page number is divisible by 100, including page 0.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/lists/{listId}/readRequests/{requestId}
Parameters
| Parameters | Details |
{workspaceId} |
|
{modelId} |
|
{listId} |
|
{requestId} |
|
Curl example
curl -X DELETE 'https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/lists/{listId}/readRequests/{requestId}' \
-H 'Authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
Response
Response 200 body
When the initiated read request ID completes and you delete it, the API returns this response:
{
"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}",
"successful": true
}
}
If the read request is in progress and you initiate the delete call, the API returns this response:
{
"meta": {
"schema": "https://api.anaplan.com/2/0/objects/listReadRequest"
},
"status": {
"code": 200,
"message": "Success"
},
"listReadRequest": {
"requestId": "0A06B0739F0E47BB92E2326C603D86EC",
"listId": 101000000014,
"requestState": "CANCELLED",
"url": "https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/lists/{listId}/readRequests/{requestId}",
"successful": true
}
}