Hi
I’m developing a small app to do some task in my Nextcloud instance using the API and the WebDav interface.
Most of the things work ok but when I try to change for example an user email it always fails. The request response is:
<ocs>
<meta>
<status>failure</status>
<statuscode>403</statuscode>
<message>Password confirmation is required</message>
<totalitems></totalitems>
<itemsperpage></itemsperpage>
</meta>
<data/>
</ocs>
I’ve tried with Postman and same response, normally I use Basic Authentication but just to give it a try I’ve created an app token, change to Bearer Authentication, same response.
But If i just use curl from the command line, it works, example:
curl -X PUT https://myuser:mypwd@my.instance.com/test/ocs/v1.php/cloud/users/test -d key="email" -d value="x@x.com" -H "OCS-APIRequest: true"
Why if I use a regular PUT request it asks for the password confirmation?
I’ve read some posts with similar questions but no one seems to have a concrete solution
Thanks in advance