Re: [Dhis2-devs] Updating the password of one user using PATCH in the Web API (2.20)

2015-10-13 Thread Morten Olav Hansen
Hi Jose When it comes to user credentials, it needs to be treated a bit differently. What you probably have to do, is to basically include the full payload of the old usercredentials with the new password. It does not support matching on anything else than "user": { "id": "..." } which is required

[Dhis2-devs] Updating the password of one user using PATCH in the Web API (2.20)

2015-10-07 Thread Jose Garcia Muñoz
Hi Morten, all, We need to update the passwords of several users using the Web API. We are trying the following API call: curl -X PATCH -d @file.json -u myuser:mypass http://localhost:8080/dhis/api/users/yhQ0Ma7CLNw/userCredentials -H "Content-Type: application/json" Where the json file is: {"u