Hi,
i try to update the user quota over an PHP Client:
`
$data=â{âquotaâ:â10Gâ}â;
$ch = curl_init(âhttps://user:pass@server/ocs/v1.php/cloud/users/usernameâ);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
curl_setopt($ch, CURLOPT_PUT, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
âOCS-APIRequest: trueâ,
âContent-Type: application/x-www-form-urlencodedâ,
]);
$response = curl_exec($ch);
curl_close($ch);`
I got this response:
<?xml version="1.0"?> failure 998 Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services.Over an plain CURL Command it works.