← Back to team overview

dhis2-devs team mailing list archive

POST calls are not working in SystemSettings API - DHIS2 2.29

 

Hi All,

We are using DHIS2 2.29.
When we made systemSettings (https://<instance>/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://<instance>/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://<instance>/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

Follow ups