Post on Geofeatures API end point

Hello Devs,

I downloaded some coordinates from one of my instances in json format. I have been trying to update another instance with the downloaded coordinates by interacting with the geoFeatures API end point using the call below:

curl -d @geoFeatures.jsonhttps://staging.xxxxxxx.xxx.xx/dhis/api/26/geoFeatures” -H “Content-Type:application/json” -u :** -v

The output is the error below:

image

Am I getting anything wrong? Is it that the geoFeatures end point doesn’t accept such operations?

Your comments/advice will be appreciated.

Regards

···

Barnabas AKUMBA

Mobile: +2348036195778

Skype: barnabas.akumba

Hi Barnabas

I don’t know these APIs very well, but from looking at the code it seems these are READ only (so any update have to go through the /api/organisationUnits endpoint)

Maybe Lars of Bjørn can clarify

image

···

On Fri, Jul 13, 2018 at 5:09 PM, Barnabas Akumba akumbabarns@gmail.com wrote:

Hello Devs,

I downloaded some coordinates from one of my instances in json format. I have been trying to update another instance with the downloaded coordinates by interacting with the geoFeatures API end point using the call below:

The output is the error below:

Am I getting anything wrong? Is it that the geoFeatures end point doesn’t accept such operations?

Your comments/advice will be appreciated.

Regards

Barnabas AKUMBA

Mobile: +2348036195778

Skype: barnabas.akumba

curl -d @geoFeatures.jsonhttps://staging.xxxxxxx.xxx.xx/dhis/api/26/geoFeatures” -H “Content-Type:application/json” -u :** -v


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

Morten Olav Hansen

Senior Engineer, DHIS 2

Team Integration Lead

University of Oslo

http://www.dhis2.org