Check if file exists

Methods: GET

http://[ZONE_STORAGE_ID]/api/v2/check?zone_id=[ZONEID]&path=[FILE_PATH]

Checks if file exists in the storage space associated with a particular CDN zone.

Parameters
Field Type Description
zone_id integer CDN zone serving the content
path string Path to the file to be checked, starting with a forward slash "/"
Headers
Field Type Description
APIKEY string Account API key
Example
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "APIKEY: 2d49e8f645d90818783c4e6c46f32ca0677dc555" -X GET "http://s02.pushrcdn.com/api/v2/check?zone_id=000&path=/some folder/file.ext"
Response
HTTP Code JSON Description
200 {"status":"success","file_exists":"1"} File exists
200 {"status":"success","file_exists":"0"} File does not exist
401 {"status":"error","description":"error message"} Wrong API key or wrong/non-existing zone ID
520 {"status":"error","description":"error message"} Something went wrong. Please contact support