← Back to team overview

dhis2-devs team mailing list archive

Re: Is it possible to change the passwd of the users using the API??

 

Can you give me the full cURL command you are using for this? including
headers etc

--
Morten

On Wed, Feb 11, 2015 at 7:07 PM, Jose Garcia Muñoz <josemp10@xxxxxxxxx>
wrote:

>
> Thanks Lars, Morten,
>
> Now the payload I am using is:
>
> {
>  "userCredentials":
>  {"password": "new_passwd",
>   "id": "AMuabF1Lrct",
>   "name": "user_name",
>   "code": "user_code",
>   "created": "2014-11-27T18:24:05.888+0000",  (Do I need this?)
>   "lastUpdated": "2015-02-11T11:57:58.116+0000"}  (Do I need this?)
> }
>
> But still getting the same message: "Unknown payload format".
>
>
>
> On Wed, Feb 11, 2015 at 10:05 AM, Lars Helge Øverland <larshelge@xxxxxxxxx
> > wrote:
>
>> An example can be seen under "user account invitations" in web api docs:
>>
>> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s27.html#d5e3604
>>
>>
>>
>

Follow ups

References