ownCloud - Adds user to group by API

时间:2015-12-14 18:08:10

标签: http-post owncloud

How add user to group by API in Owncloud ?

In the tutorial says the following:

http://owncloud.mydomain.com/ocs/v1.php/cloud/users/myUser/groups -d groupid="admin"

But, its parameter -d not work, It happens the following error :

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>999</statuscode>
  <message>Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:
</message>
 </meta>
 <data/>
</ocs>

1 个答案:

答案 0 :(得分:0)

ContentType =&#34; application / x-www-form-urlencoded&#34; ,为我工作。