Project - Account - Update Account Data

Updates configuration data related to your account

Before using this call, you'll need to authenticate against the API as detailed in Making your first call to the Project API.

All of these examples have simulation mode turned on. Once you are ready to use in a production environment, you can remove the simulation parameter. Any changes will then affect your account.

 

PHP

Ruby

Python

Response

 

PHP

$nonce = get_nonce('https://api.elucidat.com/v2/account/update', 'PUBLIC_KEY', 'PRIVATE_KEY');
$headers = auth_headers('PUBLIC_KEY', $nonce);
$fields = array(
    'company_email' => $arg1,
    'company_name' => $arg2,
    'telephone' => $arg3,
    'address1' => $arg4,
    'address2' => $arg5,
    'city' => $arg6,
    'postcode' => $arg7,
    'country' => $arg8,
    'simulation_mode' => 'simulation'
);
$result = call_elucidat($headers, $fields, 'POST', 'https://api.elucidat.com/v2/account/update', 'PRIVATE_KEY');
echo ("HTTP status code: " . $result['status'] . "\n");
print_r($result['response']);

Ruby

nonce = client.get_nonce;
headers = client.auth_headers(nonce)
fields = {'company_email' => arg1,
	'company_name'=>$arg2,
	'telephone'=>$arg3,
	'address1'=>$arg4,
	'address2'=>$arg5,
	'city'=>$arg6,
	'postcode'=>$arg7,
	'country'=>$arg8,
	'simulation_mode' => 'simulation'
}
pp client.call_elucidat(headers, fields, 'POST', '/v2/account/update')

Python 2

nonce = get_nonce(
    "https://api.elucidat.com/v2/account/update",
    "PUBLIC_KEY",
    "PRIVATE_KEY",
)
headers = auth_headers("PUBLIC_KEY", nonce)
fields = [
    ("company_email", arg1),
    ("company_name", arg2),
    ("telephone", arg3),
    ("address1", arg4),
    ("address2", arg5),
    ("city", arg6),
    ("postcode", arg7),
    ("country", arg8),
    ("simulation_mode", "simulation"),
]
print call_elucidat(
    headers,
    fields,
    "POST",
    "https://api.elucidat.com/v2/account/update",
    "PRIVATE_KEY",
)
)

Response

{
  "message": "Profile Updated"
}

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Request support
Access support that’s tailored to you by getting in touch with our Support Team.
Send us feedback
Do you have a new feature request, or want to tell us about something that works well (or not so well) for you? Get in touch!