Update User

Description

Update user data.

Query

user/update

List Variable

Name Data Type Required/Optional Description
userid string(255) Required Username
user_username string(255) Optional Username
user_password string(255) Optional Password User
email String(63) optional Contact email
fname String(32) Optional First name
lname String(32) Optional Last name
company String(32) Optional Company name
address String(255) Optional Address
address2 String(255) Optional (must include address) Address 2
address3 String(255) Optional (must include address2) Address 3
city String(32) Optional City name
province String(32) Optional Province/State
postal_code String(8) Optional Zip Code
country String(3) Optional Country code, ie: ID, MY, SG, AU
p_kdnegara String(14) Optional Telephone county code, without "+"
p_kdarea String(14) Optional Region code
phone String(14) Optional Phone number
f_kdnegara String(14) Optional Fax country code
f_kdarea String(14) Optional Fax region code
fax String(14) Optional Fax number

Example


$url = "http://srb657.srs-x.com/api/user/update";
$params['username'] = 'apiusername';
$params['password'] = hash('sha256','apipassword');
$params['userid'] = '45';
$params['user_username'] = 'email@email.id';
$params['user_password'] = '87asdfasdf';


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiurl);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
$response = curl_exec($ch);
curl_close($ch);

Example Response

Succeed:

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>Command Complete Successfully</resultMsg>
  </result>
</epp>

Failed:

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1001</resultCode>
    <resultMsg>Command Failed</resultMsg>
  </result>
</epp>