← Back to team overview

dhis2-devs team mailing list archive

Re: Remove OptionSet from DataElement

 

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@xxxxxxxxxx> wrote:

> Am trying to unassign an optionSet from a dataElement via the api.
>
> Have tried:
>
>     PUT /api/dataElements/<ID>
>
> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

References