Skip to main content

Stream Zone Update

You can update your created stream zones in order to their types.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

zone_id

integer

Yes

Zone ID

label

string

No

Zone Description

origin_pull_domain

string

No

Origin pull domain only live-pull type.

auth_username

string

No

Authentication username only live-push type.

auth_password

string

No

Authentication password only live-push type.

custom_headers

array

No

Custom Header Object. It must be an array and contains object.

ftp_password

string

No

FTP password only VoD type.

Return Values

Variable

Type

status

bool

data

objects

Example PHP Code

CODE
<?php 
$service_url = 'https://api.medianova.com/v1/zone/stream/update';
$ch = curl_init($service_url); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); 
$data = array(    
'user_key' =>'...........',    
'user_secret' =>'...........',    
'zone_id' =>'.............',    
'label' =>'.................',    
'origin_pull_domain' =>'.................',    
'custom_header' => [        
['type' => 1, 'key' => 'AddHeader', 'val' => 'AddHeaderValue'],        
['type' => 2, 'key' => 'RequestHeader', 'val' => 'RequestHeaderValue'],        
['type' => 3, 'key' => 'HideHeader'],        
['type' => 4, 'key' => 'PassHeader'],    
],); 
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
$response = curl_exec($ch);echo curl_exec($ch);curl_close($ch);
$decoded = json_decode($response); ?>

Example Output

CODE
"status": true,  
"data": {    
"cdn_url": "mn-nl.mncdn.com",    
"custom_headers": [            
{                
"type": 1,                
"key": "AddHeader",                
"val": "AddHeaderValue"            
},            
{                
"type": 2,                
"key": "RequestHeader",                
"val": "RequestHeaderValue"            
},            
{                
"type": 3,                
"key": "HideHeader"            
},            
{                
"type": 4,                
"key": "PassHeader"            
}    
],    
"label": "Test Zone",    
"name": "api-zone-live",    
"origin_pull_domain": "http://89.xxx.xxx.25:1930/live-test",    
"status": true,    
"zone_id": 1  
}
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.