← Back to team overview

dhis2-devs team mailing list archive

linking dataSet and dataElement in dhis2.25 and greater

 

I'm upgrading an app that was using the api to link dhis2 dataElement to
dataSet
It was previously trivial, but with addition of the dataSetElements it
looks more complicated.

the api
    https://play.dhis2.org/demo/api/dataSets/VTdjfLXXmoi
return a non existing resource href
    https://play.dhis2.org/demo/api/dataSetElements/kW1vJMSDEHc

how can I add a dataSetElements to that dataSet ?
let's say : https://play.dhis2.org/demo/api/dataElements/Usk9Asj5DED

How would the curl and payload command looks like ?

thanks

Stéphan