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 <[email protected]>
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 <[email protected]>
> 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 <
>> [email protected]> 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
>>>
>>>
>>>
>>
>
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to