DHIS-2 API For setting attributes values of organisation unit.

Hi,

I have studied developer guide for searching an API: **That will set the value of extra attributes that i have added to organisation unit. **

Could not find yet.

For Example :

Attribute id:abc (which is the extra field/attribute of organisation unit )

Attribute value: 123

set it to org unit - id :abcxmsms etcc;

Can you please guide me for this API? Or any Reference ?

Thanks


Virus-free. www.avast.com

Hi Omer

Just use the normal OU payload, and add the attributes:

{

… normal OU payload,

“attributes”: [

{ “attribute”: {“id”: “UID OF ATTRIBUTE”}, “value”: “value1”},

{ “attribute”: {“id”: “UID OF ATTRIBUTE”}, “value”: “value2”}

]

}

···

On Wed, Nov 22, 2017 at 12:08 PM, Omer Butt omerbutt2521@gmail.com wrote:

Hi,

I have studied developer guide for searching an API: **That will set the value of extra attributes that i have added to organisation unit. **

Could not find yet.

For Example :

Attribute id:abc (which is the extra field/attribute of organisation unit )

Attribute value: 123

set it to org unit - id :abcxmsms etcc;

Can you please guide me for this API? Or any Reference ?

Thanks


Virus-free. www.avast.com


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org