Progressive Geoblock Edit

Please note that in our new cloud panel, Zones are named as CDN Resources. (Zone ID = CDN Resource ID)

This operation allows you to edit Geoblocks for your progressive zone.

Parameters

Return Values

Example PHP Code

<?php
$data = array(
   "user_key"   => "Your User Key",
   "user_secret"  =>"Your User Secret",
   "zone_ids" => ["zone_id"],
   "countries" => ["county_code"]
);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.medianova.com/v1/geoblocking/edit",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => “PUT”,
  CURLOPT_POSTFIELDS => json_encode($data),
  CURLOPT_HTTPHEADER => array(
    "Content-Type: application/json"
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;Example Output

Example Output

{
    "status": true,
    "opid": "576UWnEydPJfXAYB"
}