How to set orgunit attributes value to common using API

Greetings, I’m seeking a method to efficiently update numerous organizational unit opening dates to a common value using the PUT method in Postman, ideally without individually specifying each ID. Manually referencing IDs for multiple organization units is proving cumbersome. Is there a way to streamline this process? @Gassim

Dear @blen
There is no way to do this directly through the user interface. The easiest way for this particular use case would probably be with an SQL query made directly against the database. The DHIS2 Taskr app might be useful as well, if you know a bit of Javascript. This app allows you to create small JavaScript scripts which can then utilize the DHIS2 API. The DHIS2 Pocket Knife also should allow you to update attributes in organization units. Details are here.

Hope this helps! Good luck!

1 Like

Thank you it helped.

1 Like