admin.save
Description
Save a new system admin or save changes to an existing system admin.
Arguments
name | required | value type | default value |
---|---|---|---|
fullname | no | string | none |
username | yes | string | none |
no | string | none | |
language | no | language code | none |
password | yes, if new | Object containing 'password1' and 'password2' which must match | none |
Example Requests & Responses
Example One
Request
Save a new system admin or save changes to an existing system admin.
{
    'method' => 'admin.save',
    'parameters' => {
        'email' => 'default.admin@invalid.tld',
        'language' => 'en_us',
        'password' => {
             'password2' => 'asdfasdf',
             'password1' => 'asdfasdf'
        },
        'fullname' => 'Default Admin',
        'username' => 'admin'
    }
} |
Response
{
          'result' => 'success'
 } |
Or
{
          'result' => 'error',
          'error' => 'An Error String',
          'error_key' => 'AN_ERROR_LANGUAGE_KEY',
 } |