← Back to team overview

dhis2-devs team mailing list archive

Re: Error POSTing programs metadata

 

On Tue, Mar 31, 2015 at 3:53 PM, Shilpa Goley <goleys@xxxxxxxxxxxxxxxx>
wrote:

>             "programStageDataElements": [
>                 {
>                     "id": "a36531ccdvv",
>                     "name": "Arrival Date - Burn Unit"
>                 }
>             ],
>

Just to confirm, this is pointing to an already created
programStageDataElement instance? you probably don't even need this in the
payload.. just create the programStage as normal (without
programStageDataElement) then create an instance of programStageDataElement
where you bind connect programStage and dataElement together

--
Morten

References