- fire curl according to documentation:
curl -u admin:password http://example.org/ocs/v1.php/cloud/users/abc/disable -i -X PUT -H "OCS-APIRequest:true"
this returns a 200 without body and doesn't disable the user:
HTTP/1.1 200 OK
Content-Length: 0
Content-Type: text/xml; charset=UTF-8
But sending it with -d key="disable" -d value="true"
It returns the correct body and also disables the user:
<?xml version="1.0"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
<totalitems></totalitems>
<itemsperpage></itemsperpage>
</meta>
<data/>
</ocs>
cc @schiessle @rullzer
ref nextcloud/documentation#389
this returns a 200 without body and doesn't disable the user:
But sending it with
-d key="disable" -d value="true"It returns the correct body and also disables the user:
cc @schiessle @rullzer
ref nextcloud/documentation#389