Experience Platform -Deletion of batch from API
Hi All
My requirement is every day i will get new file in S3 and need to ingest into my dataset and previous batch need to be deleted.
For this i have used below curl's
To get the batch details
curl -X POST https://platform.adobe.io/data/foundation/import/batches \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
-d '{
"datasetId": "{DATASET_ID}",
"inputFormat": {
"format": "csv"
}
}'
Batch deletion
curl -X POST https://platform.adobe.io/data/foundation/import/batches/{BATCH_ID}?action=REVERT \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
While testing it in postman i am able to view the deletion happen but if i query the dataset i am able to view the records
Can any one suggest me any alternative way.
Thanks in advance.
Thanks and regards
Gowtham Raj




