From c46bfb96ae7c50d903c18bf79a30e1db0ec54334 Mon Sep 17 00:00:00 2001 From: dietmaroc Date: Tue, 24 Sep 2013 02:09:18 +0200 Subject: [PATCH] Update introduction.rst --- intro_manual/introduction.rst | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/intro_manual/introduction.rst b/intro_manual/introduction.rst index b31e52115..85d1813ec 100644 --- a/intro_manual/introduction.rst +++ b/intro_manual/introduction.rst @@ -168,3 +168,40 @@ Possible providing methods are: * Providing storage out of your own filesystem * Mounting storage from your local network (further machines/NAS) * Mounting storage from any location, which you may access + + +users / adduser +=============== + +Create a new user on the cloud server. Only authenticated administrator users are allowed to access this method. Authentication is done by sending a basic HTTP authentication header. +* syntax: /v1/cloud/users +* HTTP method: POST +* POST argument: userid - string, the required username for the new user +* POST argument: password - string, the required password for the new user +* Statuscodes: +** 100 - successful +** 101 - invalid input data +** 102 - username already in user +** 103 - unknown error occurred whilst adding the user + +:: + +Example: + +* POST http://frank:password@myowncloud.org/ocs/v1.php/cloud/users -d user="Frank" -d password="frankspassword" +* Creates the user 'Frank' with password 'frankspassword' +* And the following XML-output + +:: + +**XML-Output:** + + + + ok + 100 + + + + +