Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Table of Contents
minLevel2

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

email

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.

Code Block
{
    'method' => 'admin.save',
    'parameters' => {
        'email' => 'default.admin@invalid.tld',
        'language' => 'en_us',
        'password' => {
             'password2' => 'asdfasdf',
             'password1' => 'asdfasdf'
        },
        'fullname' => 'Default Admin',
        'username' => 'admin'
    }
}

Response

Code Block
{
          'result' => 'success'
 }

Or

Code Block
{
          'result' => 'error',
          'error' => 'An Error String',
          'error_key' => 'AN_ERROR_LANGUAGE_KEY',
 }