Allows you to define Disallow Cache Path.

 

Parameters

Example Code:

<?php
$curl_post_data = array(
'user_key' => 'Your User Key',
'user_secret' =>'Your User Secret',
'zone_id' => zoneid,
'disallow_cache_paths' => 'Your Path'
);
$request_body = json_encode($curl_post_data);
$service_url = 'https://api.medianova.com/v1/zone/aksela/disallow_cache_path_add';
$ch = curl_init($service_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($request_body))
);
$response = curl_exec($ch);
var_dump($response);
?>

 

Example Output:

{
"status": true,
"data": [
        "/yourPaths"
    ],
"opid": "576UWnEydPJfXAYB"
}

 

 

Was this post helpful?