Skip to main content

Updating of Zone Information

It allows you to edit your zone details.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

name

string

Yes

Your First Name

surname

string

Yes

Your Surname

email

string

Yes

Your main email address.

notification_emails

array

Yo

Example: ["email1@yourdomain.com","http://email2.yourdomain.com "]

timezone

string

No

Valid timezone (see List of Supported Timezones)

Return Values

Variable

Type

status

bool

data

object

Example PHP Code

CODE
<?php

$data = array(
     "user_key": "user_key.",
    "user_secret": "user_secret",
    "name": "name",
    "surname": "surname",
    "email": "email"
);

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.medianova.com/v1/account/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

CODE
{
    "status": true,
    "data": {
        "id": id,
        "username": "username",
        "name": "name",
        "surname": "surname",
        "email": "email",
        "notification_emails": [notification_emails],
        "timezone": "timezone"
    },
    "opid": "TEt2j6Y0LqCZbzAU"
}

JavaScript errors detected

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

If this problem persists, please contact our support.