[owncloud-devel] User Provisioning API - changing user info

Alessandro Cosentino cosenal at gmail.com
Sat Nov 21 10:16:03 GMT 2015


Right now you're sending a POST. Try to add '-X PUT' as option of your
curl command.

Alessandro

On Sat, Nov 21, 2015 at 12:15 AM, coreymj <reg at pathrider.ca> wrote:
> Ok - I found out some more information on my attempt to change a user's
> display name via the User Provisioning API.  After accounting for a type in
> the documentation, this is what my curl query looks like:
>
> curl "https://admin:admin@localhost/owncloud/ocs/v1.php/cloud/users/juser"
> -d key="display" -d value="Joe User" -k -v
>
> Then I discovered the '-v' param, and sure enough:
>
>> POST /owncloud/ocs/v1.php/cloud/users/juser HTTP/1.1
> ...
> < HTTP/1.1 405 Method Not Allowed
> ...
>
> Anyone have an idea why this is not allowed?
>
> Thanks!
> Corey.
>
>
>
> --
> View this message in context: http://owncloud.10557.n7.nabble.com/User-Provisioning-API-changing-user-info-tp16112p16115.html
> Sent from the Developers mailing list archive at Nabble.com.
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel


More information about the Devel mailing list