dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35622
Re: Is it possible to change the passwd of the users using the API??
sure,
curl.exe -X PATCH -d @c:\file.json -u myuser:mypasswd "
http://localhost:8080/dhis/api/users/zNdlm77vil8/userCredentials"
On Wed, Feb 11, 2015 at 2:01 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
wrote:
> 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
-
Is it possible to change the passwd of the users using the API??
From: Jose Garcia Muñoz, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Jason Pickering, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Jose Garcia Muñoz, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Morten Olav Hansen, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Jose Garcia Muñoz, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Jason Pickering, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Jose Garcia Muñoz, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Lars Helge Øverland, 2015-02-09
-
Re: Is it possible to change the passwd of the users using the API??
From: Morten Olav Hansen, 2015-02-10
-
Re: Is it possible to change the passwd of the users using the API??
From: Jose Garcia Muñoz, 2015-02-10
-
Re: Is it possible to change the passwd of the users using the API??
From: Morten Olav Hansen, 2015-02-11
-
Re: Is it possible to change the passwd of the users using the API??
From: Lars Helge Øverland, 2015-02-11
-
Re: Is it possible to change the passwd of the users using the API??
From: Jose Garcia Muñoz, 2015-02-11
-
Re: Is it possible to change the passwd of the users using the API??
From: Morten Olav Hansen, 2015-02-11