[Pkg-owncloud-commits] [owncloud-doc] 18/38: Create prob

David Prévot taffit at alioth.debian.org
Fri Sep 27 22:36:52 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch dfsg_clean
in repository owncloud-doc.

commit 3615a12dee754eaad7de897eec3282b61be01c30
Author: dietmaroc <dietmar at owncloud.com>
Date:   Tue Sep 24 02:06:41 2013 +0200

    Create prob
---
 intro_manual/prob |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/intro_manual/prob b/intro_manual/prob
new file mode 100644
index 0000000..e9395a9
--- /dev/null
+++ b/intro_manual/prob
@@ -0,0 +1,34 @@
+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:**
+<?xml version="1.0"?>
+<ocs>
+ <meta>
+  <status>ok</status>
+  <statuscode>100</statuscode>
+  <message></message>
+ </meta>
+ <data/>
+</ocs>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list