StrikeTracker KnowledgeBase

Purge via API

Note: StrikeTracker has a rate limit on purge calls via API. To learn more, read about StrikeTracker's API purge call rate limit.

In order to purge a file named index.html from the cdn.example.com host first populate data.json with the following


{
  "list":[
    {
      "url":"http://cdn.example.com/index.html"
    }
  ]
}

A recursive purge can also be issued to purge all content in a particular path or to purge all variations of a file using dynamic content caching.

{
    "list": [
        {
            "url": "http://cdn.example.com/index.html",
            "recursive": false
        },
        {
            "url": "http://cdn.example.com/images/",
            "recursive": true
        }
    ]
}

Then execute:

curl -H "Authorization: Bearer [authenticate to get Bearer token]|STAGE:Write-only" \

-H "Content-Type: application/json" -d "@data.json" \
"https://striketracker.highwinds.com/api/accounts/<accountId>/purge"