Remove OptionSet from DataElement

Am trying to unassign an optionSet from a dataElement via the api.

Have tried:

PUT /api/dataElements/

In the JSON, have tried removing the optionSet, setting it to {}, setting the optionSetValue to false and many other combinations but nothing seems to work.

Any help greatly appreciated.

Hi

Try and set it to null, and use mergeStrategy=REPLACE (2.19 only)

···


Morten

On Wed, May 13, 2015 at 2:47 AM, Alan Hill ahill@2paths.com wrote:

Am trying to unassign an optionSet from a dataElement via the api.

Have tried:

PUT /api/dataElements/

In the JSON, have tried removing the optionSet, setting it to {}, setting the optionSetValue to false and many other combinations but nothing seems to work.

Any help greatly appreciated.


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