diff --git a/docs/api/api.rst b/docs/api/api.rst --- a/docs/api/api.rst +++ b/docs/api/api.rst @@ -187,7 +187,18 @@ OUTPUT:: result: { "id" : "", - "msg" : "created new user " + "msg" : "created new user ", + "user": { + "id" : "", + "username" : "", + "firstname": "", + "lastname" : "", + "email" : "", + "active" : "", + "admin" :  "", + "ldap_dn" : "", + "last_login": "", + }, } error: null @@ -195,7 +206,7 @@ OUTPUT:: update_user ----------- -updates current one if such user exists. This command can +updates given user if such user exists. This command can be executed only using api_key belonging to user with admin rights. @@ -220,7 +231,33 @@ OUTPUT:: result: { "id" : "", - "msg" : "updated user " + "msg" : "updated user ID: " + } + error: null + + +delete_user +----------- + + +deletes givenuser if such user exists. This command can +be executed only using api_key belonging to user with admin rights. + + +INPUT:: + + id : + api_key : "" + method : "delete_user" + args : { + "userid" : "", + } + +OUTPUT:: + + result: { + "id" : "", + "msg" : "deleted user ID: " } error: null