diff --git a/docs/api/api.rst b/docs/api/api.rst --- a/docs/api/api.rst +++ b/docs/api/api.rst @@ -151,7 +151,7 @@ OUTPUT:: create_user ----------- -Creates new user or updates current one if such user exists. This command can +Creates new user. This command can be executed only using api_key belonging to user with admin rights. @@ -179,6 +179,37 @@ OUTPUT:: error: null +update_user +----------- + +updates current one if such user exists. This command can +be executed only using api_key belonging to user with admin rights. + + +INPUT:: + + api_key : "" + method : "update_user" + args : { + "username" : "", + "password" : "", + "email" : "", + "firstname" : " = None", + "lastname" : " = None", + "active" : " = True", + "admin" : " = False", + "ldap_dn" : " = None" + } + +OUTPUT:: + + result: { + "id" : "", + "msg" : "updated user " + } + error: null + + get_users_group ---------------