POST calls are not working in SystemSettings API - DHIS2 2.29

Hi All,

We are using DHIS2 2.29.

When we made systemSettings (https:///api/systemSettings?key=MY_KEY) GET call the response is as below

{“MY_KEY”: {

“MyKeyInfo”: [

“val1”,

“val2”

]

}

}

We were trying to make POST call to update the value for key “MY_KEY” as below

url: https:///api/systemSettings

Content-Type: “application/json”

body:

{

“MY_KEY”: {

“MyKeyInfo”: [

“val1”,

]

}

}

We recieved response with error message as

{

“httpStatus”: “Conflict”,

“httpStatusCode”: 409,

“status”: “ERROR”,

“message”: “Key(s) is not supported: MY_KEY”

}

Also, we have tried making POST calls with https:///api/systemSettings/MY_KEY with values as a part of body in json format. We got the same error response.

We are able to make POST call for DHIS key(s) listed in the DHIS2.29 documentation, However POST calls with our keys are failing.

Could you please help us to resolve this issue.

Regards

Gaurav & Raaji

Hi Gaurav,

According to 2.29 upgrade notes, custom systemSettings keys are not supported anymore but the dataStore API should behave similarly.

Regards,

David

···

David Huser
DHIS2 Support Specialist

dhuser@baosystems.com | https://baosystems.com | 2900 K Street, Suite 507, Washington D.C. 20007

Thanks David !!

···

Kumar Gaurav Nath Shahdeo
Developer
Email
gauravns@thoughtworks.com
Telephone
+91 9160688935
ThoughtWorks