This API call will be available soon, but we're sharing the documentation now so you can prepare.
Edits an existing project within an 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.
The following arguments are available against this endpoint:
project_code
- The code for the project you would like to edit.
name
- A new name for the project (this is optional).
folder
- Id of the folder that the project should be assigned to. (this is optional).
PHP
$nonce = get_nonce('https://api.elucidat.com/v2/projects', 'PUBLIC_KEY', 'PRIVATE_KEY');
$headers = auth_headers('PUBLIC_KEY', $nonce);
$fields = array(
'project_code' => $_arg1,
'name' => $arg2,
'folder' => $arg3,
'simulation_mode' => 'simulation'
);
$result = call_elucidat($headers, $fields, 'POST', 'https://api.elucidat.com/v2/projects/edit', 'PRIVATE_KEY');
echo ("HTTP status code: " . $result['status'] . "\n");
print_r($result['response']);
Ruby
nonce = client.get_nonce;
headers = client.auth_headers(nonce)
fields = {
'project_code' => arg1,
'name' => arg2,
'folder' => arg3,
'simulation_mode' => 'simulation'}
pp client.call_elucidat(headers, fields, 'POST', '/v2/projects/edit')
Python
nonce = get_nonce(
"https://api.elucidat.com/v2/projects",
"PUBLIC_KEY",
"PRIVATE_KEY",
)
headers = auth_headers("PUBLIC_KEY", nonce)
fields = [
("project_code", arg1),
("name", arg2),
("folder", arg3),
("simulation_mode", "simulation"),
]
print call_elucidat(
headers,
fields,
"POST",
"https://api.elucidat.com/v2/projects/edit",
"PRIVATE_KEY",
)
Response
{
"200 - OK"
}