Why '/api/dataValueSets.json' Endpoint don't works, but this '/api/analytics/dataValueSet.json' do work?

Hi team,

Why ‘/api/dataValueSets.json’ Endpoint doesn’t works, but this ‘/api/analytics/dataValueSet.json’ do work?

Could there be some Authorities that a user must have? Kindly advice?

The Target server is version 2.38.5. Am using the same variables in the the two requests.

Hi @dmaritim
You said your instance is on 2.38.5, unfortunately that version is no longer on play dhis2.
Using the version 2.38.6 that is on play dhis2
The following query is pulling data successfully:

Maybe you may consider upgrading to 2.38.6 if you continue facing challenges.

Thanks

1 Like

Hi @dmaritim : it might be helpful if you could share the error message that you get back when you make the request to api/dataValueSets.json. I believe it should be working in 2.38.5.

1 Like