Purge CDN service content

URL

https://cdnsun.com/api/cdns/ID/purge

Method

POST

Curl example

curl -i -X POST -u username:password -H 'Accept: application/json' -H 'Content-type: application/json' --url 'https://cdnsun.com/api/cdns/ID/purge' -d '{"purge_paths":["\/images\/image.jpeg","\/images\/image2.jpeg"]}'

Options

OptionData TypeDescriptionExample
IDintegerIndicates the CDN service ID.5
purge_paths*arrayArray of (string) paths to purge.[/images/image.jpeg, /images/image2.jpeg]

Contact Us

  ______    _____     ______  
 /_____//  |  ___||  /_   _// 
 `____ `   | ||__    `-| |,-  
 /___//    | ||__      | ||   
 `__ `     |_____||    |_||   
 /_//      `-----`     `-`'   
 `-`