Project - Authors - Change Author Role

Creates authors - only for Elucidat resellers

Change the role of an author. The following options are available.

  • 'administrator' - can access everything in your account - including creating and administering Editors and managing Billing.
  • 'author' - Can add, edit, publish and delete any Projects in your account, but cannot administer your account.
  • 'reviewer' - Can view any Projects in your account, and leave comments, but cannot make changes.
  • 'designer' - Behaves like an Editor, but it also able to create their own layouts.
  • 'designer-with-analytics' - Behaves like an Designer, but also has access to the analytics feature.
  • 'analytics' - Grants access to the analytics feature.

The scope of interaction a user can have with projects can also be limited. The following scopes can be used:

  • 'account' - Grants access to all projects in your account.
  • 'department' - Grants access to projects assigned to any departments the user is in.
  • 'individual' - The user must be shared into projects on an individual basis.

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/authors/role', '43601159-5921-4369-0777-3923967ADBCB', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0');
$headers = auth_headers('43601159-5921-4369-0777-3923967ADBCB', $nonce);
$fields = array(
'email'=>$arg1,
'role' =>$arg2,
'scope'=>$arg3,
'simulation_mode'=>'simulation');
$result = call_elucidat($headers, $fields, 'POST', 'https://api.elucidat.com/v2/authors/role', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0');
echo ("HTTP status code: " . $result['status'] . "\n");
print_r($result['response']);

Ruby

nonce = client.get_nonce;
headers = client.auth_headers(nonce)
fields = {'email' => arg1,
'role' => arg2,
'scope' => arg3,
'simulation_mode' => 'simulation'
}
pp client.call_elucidat(headers, fields, 'POST', '/v2/authors/role')

Python

nonce = get_nonce('https://api.elucidat.com/v2/authors/role', '43601159-5921-4369-0777-3923967ADBCB', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0')
headers = auth_headers('43601159-5921-4369-0777-3923967ADBCB', nonce);
fields = [
('email', arg1),
('role', arg2),
('scope', arg3),
('simulation_mode', 'simulation')]
print call_elucidat(headers, fields, 'POST', 'https://api.elucidat.com/v2/authors/role', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0')

Response

{"message":"Only resellers may use this endpoint."}

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!