Allows you to update a small object zone.

Parameters

Return Values

PHP Example:

<?php

$service_url = 'https://api.medianova.com/v1/zone/small/update;
$ch = curl_init($service_url);
 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
$data = array(

    'user_key'   => 'Your User Key',
    'user_secret'  =>'Your User Secret',
    'label'   => 'Zone Label',
    'zone_id' =>'Zone Id'
    
);
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
$response = curl_exec($ch);
curl_close($ch);
$decoded = json_decode($response);
?>

 

{
   "status": true,
   "data": {
     "alias": [
       "alias.medianova.com"
     ],
     "origin_authentication": {
       "username": "username",
       "password": "pass"
     },
     "browser_cache": "2h",
     "cdn_url": "cdn_url.mncdn.com",
     "create_at": "2016-08-20 11:00:00",
     "sni": false,
     "edge_cache": "7#d",
     "gzip": true,
     "http2": false,
     "zone_id": 1,
     "image_compress": true,
     "image_optimization": true,
     "label": "cdnlabel",
     "name": "cdn_url",
     "origin_url": "https://www.medianova.com",
     "query_string": false,
     "custom_404": "",
     "custom_query_string": false,
     "custom_query_string_args": [],
     "custom_headers": [
         [
              {
                  "type": 1,
                  "key": "Add-Header",
                  "val": "Add-Header-Value"
              },

              {

                  "type": 2, 
                  "key": "Request-Header",
                  "val": "Request-Header-Value",
              },
         
              {
                  "type": 3,
                  "key": "Hide-Header"
              }
         ]
     ],
     "robots": "disable",
     "secure_token": false, 
     "secure_token_code": false, 
     "shared_ssl": false, 
     "status": true, 
     "whitelist": [
        "whitelist1.mncdn.com", 
        "whitelist2.mncdn.com"
     ],
    }
   }

Was this post helpful?