← Back to team overview

dhis2-devs team mailing list archive

Update user's dataViewOrganisationUnits

 

Hi devs,

I'm trying to update users throught the API. The property that I want to
update is the *"dataViewOrganisationUnits"*. I downloaded the json usind
the *.../api/users/uid.json* endpoint, then I changed the value of the
desired property an uploaded the new json file (see attached example) using
a *PUT* method. This has NOT worked, so I would really appreaciate if you
could guide me on how to do this.

DHIS version: 2.22
Build revision: 21969

Thanks,
Esunly


*Esunly Medina (PhD)*
Consultant, BAO Systems
+34 699-424-540 | emedina@xxxxxxxxxxxxxx | http://www.baosystems.com |
Skype: esunly | 2900 K Street, Suite 404, Washington D.C. 20007

Attachment: user_example.json
Description: application/json