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

return a non existing resource href

how can I add a dataSetElements to that dataSet ?

let’s say :

How would the curl and payload command looks like ?