Purge CDN Resource in Top Files Report

To remove content from cache, use the following request:

POST /cdn/reports/top_files/purge.xml
POST /cdn/reports/top_files/purge.json

XML Request Example

curl -i -X POST -u user:userpass http://onapp.test/cdn/reports/top_files/purge.xml -d '<root><remote_id>945986057</remote_id><url>/</url></root>' -H 'Accept:application/xml' -H 'Content-type:application/xml' 

JSON Request Example

curl -i -X POST -u user:userpass http://onapp.test/cdn/reports/top_files/purge.json -d '{"remote_id": "945986057", "url": "/"}' -H 'Accept:application/json' -H 'Content-type:application/json'

Where:
remote_id – the ID of the CDN resource

url – the URL of the resource file