Re: [Dhis2-devs] [Dhis2-users] Option Set - Update an option code

2018-01-30 Thread Kevin Bolger
Hi Archana, Thanks so much - this will work excellent for the first part of what I'm trying to achieve. Are you aware if using a put request and an updated JSON payload would allow for option code updates? (I'll test and let you know). I'm concerned as via the UI the option code is grayed out and

Re: [Dhis2-devs] [Dhis2-users] Option Set - Update an option code

2017-01-31 Thread Archana Chillala
Hi Kevin, You could use the optionSets API as follows, with required fields: http://localhost:8080/api/optionSets/.json?fields=id,name,displayName,options[id,name,code] Here, for a given option Set ID, the required fields are fetched. Archana Chillala Application Developer Email archa...@t