# \#api

**URL:** https://community.dhis2.org/tag/api/47.md

[Latest](https://community.dhis2.org/latest.md) · [Categories](https://community.dhis2.org/categories.md) · [Tags](https://community.dhis2.org/tags.md)

---

## [Outbreak Signal Service: open-source EARS/CUSUM aberration detection for DHIS2 surveillance data](https://community.dhis2.org/t/outbreak-signal-service-open-source-ears-cusum-aberration-detection-for-dhis2-surveillance-data/77627)

<div class="topic-metadata">

**Author:** [@khalilurrahman](https://community.dhis2.org/u/khalilurrahman)\
**Replies:** 0\
**Last updated:** [20 October 2026 16:38 UTC](https://community.dhis2.org/t/outbreak-signal-service-open-source-ears-cusum-aberration-detection-for-dhis2-surveillance-data/77627 "2026-10-20T16:38:57Z")

</div>

Hi all, I’m building Outbreak Signal Service, an open-source backend that pulls weekly DHIS2 aggregate surveillance data and flags statistical aberrations for human review, using CDC’s EARS (C1-C3) and CUSUM methods alongside a moving-average z-score baseline. Why a separate service instead of DHIS2’s native Predicto…

---

## [lastUpdated and lastUpdatedDuration parameters no longer working for GET /api/dataValueSets in v2.43](https://community.dhis2.org/t/lastupdated-and-lastupdatedduration-parameters-no-longer-working-for-get-api-datavaluesets-in-v2-43/75399)

<div class="topic-metadata">

**Author:** [@abbybeeler](https://community.dhis2.org/u/abbybeeler)\
**Replies:** 5\
**Last updated:** [7 September 2026 13:38 UTC](https://community.dhis2.org/t/lastupdated-and-lastupdatedduration-parameters-no-longer-working-for-get-api-datavaluesets-in-v2-43/75399 "2026-09-07T13:38:31Z")

</div>

On the demo instance for the new 2.43 release, a GET request for the /api/dataValueSets endpoint returns a 409 error with “At least one period, start/end dates, last updated or last updated duration must be specified” when lastUpdated and lastUpdatedDuration parameters are used in the request. For example, Login app | …

---

## [Syntax problem with the analytics request](https://community.dhis2.org/t/syntax-problem-with-the-analytics-request/60546)

<div class="topic-metadata">

**Author:** [@Shubham](https://community.dhis2.org/u/Shubham)\
**Replies:** 4\
**Last updated:** [21 July 2026 13:31 UTC](https://community.dhis2.org/t/syntax-problem-with-the-analytics-request/60546 "2026-07-21T13:31:16Z")

</div>

Hi, Recently, I’ve been facing an error while visualizing program indicators in the data visualizer app. These program indicators are built using event data imported via the API. The data appears perfectly fine in the…

---

## [Potential User Enumeration via Organisation Unit API (DHIS2 2.42.4)](https://community.dhis2.org/t/potential-user-enumeration-via-organisation-unit-api-dhis2-2-42-4/70488)

<div class="topic-metadata">

**Author:** [@pankajky](https://community.dhis2.org/u/pankajky)\
**Replies:** 1\
**Last updated:** [23 February 2026 12:54 UTC](https://community.dhis2.org/t/potential-user-enumeration-via-organisation-unit-api-dhis2-2-42-4/70488 "2026-02-23T12:54:46Z")

</div>

Dear DHIS2 Community, I would like to report and seek clarification regarding a potential information disclosure issue observed in DHIS2 version 2.42.4. Summary When querying an Organisation Unit (OU) through the Web A…

---

## [Event duplicated by uid](https://community.dhis2.org/t/event-duplicated-by-uid/55139)

<div class="topic-metadata">

**Author:** [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Replies:** 10\
**Last updated:** [28 October 2025 08:08 UTC](https://community.dhis2.org/t/event-duplicated-by-uid/55139 "2025-10-28T08:08:43Z")

</div>

I’ve imported events with the api (post on /api/events) with “pre assigned uid” in the “event” field It’s a technique that worked great on my previous tracker import (the events gets updated and not duplicated) But her…

---

## [Python Script to Bulk Update DHIS2 User Interface Language Settings](https://community.dhis2.org/t/python-script-to-bulk-update-dhis2-user-interface-language-settings/66740)

<div class="topic-metadata">

**Author:** [@DSSIS\_CHAD](https://community.dhis2.org/u/DSSIS_CHAD)\
**Replies:** 0\
**Last updated:** [12 July 2025 20:01 UTC](https://community.dhis2.org/t/python-script-to-bulk-update-dhis2-user-interface-language-settings/66740 "2025-07-12T20:01:52Z")

</div>

:megaphone: Introduction When importing large batches of users into DHIS2, we’ve observed that default accounts often have the interface set to English. To automatically switch the UI language to French for multiple user…

---

## [403 Issue when trying to View/Download a file resource from a DHIS2 Instance](https://community.dhis2.org/t/403-issue-when-trying-to-view-download-a-file-resource-from-a-dhis2-instance/64201)

<div class="topic-metadata">

**Author:** [@Panashe\_Masocha](https://community.dhis2.org/u/Panashe_Masocha)\
**Replies:** 1\
**Last updated:** [24 March 2025 21:04 UTC](https://community.dhis2.org/t/403-issue-when-trying-to-view-download-a-file-resource-from-a-dhis2-instance/64201 "2025-03-24T21:04:05Z")

</div>

Hello everyone, please help I am making an API Request as a superUser but l am getting the error below: { “httpStatus”: “Forbidden”, “httpStatusCode”: 403, “status”: “ERROR”, “message”: “You don’t have access to fi…

---

## [PowerBi - web connector](https://community.dhis2.org/t/powerbi-web-connector/66450)

<div class="topic-metadata">

**Author:** [@tikhas](https://community.dhis2.org/u/tikhas)\
**Replies:** 1\
**Last updated:** [25 June 2025 12:14 UTC](https://community.dhis2.org/t/powerbi-web-connector/66450 "2025-06-25T12:14:32Z")

</div>

I need to connect power bi to DHIS2 using web under certified connectors in powerbi. However am just getting HTML code and my DHIS2 address. I need to import tracker capture data to create dashboards in powerBi. Advise…

---

## [What is correct PATCH request structure to update a specific attributevalue of an organisationUnit](https://community.dhis2.org/t/what-is-correct-patch-request-structure-to-update-a-specific-attributevalue-of-an-organisationunit/65754)

<div class="topic-metadata">

**Author:** [@arslan\_mughal](https://community.dhis2.org/u/arslan_mughal)\
**Replies:** 5\
**Last updated:** [23 June 2025 10:12 UTC](https://community.dhis2.org/t/what-is-correct-patch-request-structure-to-update-a-specific-attributevalue-of-an-organisationunit/65754 "2025-06-23T10:12:03Z")

</div>

Hi Community, What is the correct PATCH request structure to update a specific attributevalue of an organisationUnit via the ../api/organisationUnits/{id} endpoint? (I want to update only specifc attributevalue (Custom…

---

## [Guidance Needed: Tracking Confirmed Breast Cancer Cases Using DHIS2 Tracker](https://community.dhis2.org/t/guidance-needed-tracking-confirmed-breast-cancer-cases-using-dhis2-tracker/65282)

<div class="topic-metadata">

**Author:** [@Mitou](https://community.dhis2.org/u/Mitou)\
**Replies:** 6\
**Last updated:** [9 June 2025 06:29 UTC](https://community.dhis2.org/t/guidance-needed-tracking-confirmed-breast-cancer-cases-using-dhis2-tracker/65282 "2025-06-09T06:29:24Z")

</div>

Hi everyone, We are currently implementing a breast cancer program across four regions in our country. At present, there is no established mechanism to track clients who have been confirmed with breast cancer. As part o…

---

## [DHIS2 API to Develop Tanzania Immunisation Registry](https://community.dhis2.org/t/dhis2-api-to-develop-tanzania-immunisation-registry/64513)

<div class="topic-metadata">

**Author:** [@tuzoengelbert](https://community.dhis2.org/u/tuzoengelbert)\
**Replies:** 1\
**Last updated:** [5 June 2025 12:48 UTC](https://community.dhis2.org/t/dhis2-api-to-develop-tanzania-immunisation-registry/64513 "2025-06-05T12:48:37Z")

</div>

This community innovation has been accepted at the 2025 DHIS2 Annual Conference DHIS2API to Develop Tanzania Immunisation Registry One of the immediate digital health priorities within the Immunization Vaccine Devel…

---

## [User who has access to certain specific api endpoints](https://community.dhis2.org/t/user-who-has-access-to-certain-specific-api-endpoints/64957)

<div class="topic-metadata">

**Author:** [@zubair](https://community.dhis2.org/u/zubair)\
**Replies:** 3\
**Last updated:** [19 May 2025 07:28 UTC](https://community.dhis2.org/t/user-who-has-access-to-certain-specific-api-endpoints/64957 "2025-05-19T07:28:51Z")

</div>

Hi Community, Is it possible to create a user in DHIS2 with access restricted to only GET or POST requests on specific API endpoints? Thanks, R

---

## [Connect React App with DHIS2](https://community.dhis2.org/t/connect-react-app-with-dhis2/52659)

<div class="topic-metadata">

**Author:** [@sami12111](https://community.dhis2.org/u/sami12111)\
**Replies:** 12\
**Last updated:** [30 April 2025 15:02 UTC](https://community.dhis2.org/t/connect-react-app-with-dhis2/52659 "2025-04-30T15:02:14Z")

</div>

Hi I am trying to connect a new React App with DHIS2 instance but I am getting 401 Error Code. http://localhost:3000 is already whitelisted. Any help is much appreciated. Thanks

---

## [Download Event Report](https://community.dhis2.org/t/download-event-report/64647)

<div class="topic-metadata">

**Author:** [@Shubham](https://community.dhis2.org/u/Shubham)\
**Replies:** 1\
**Last updated:** [24 April 2025 21:14 UTC](https://community.dhis2.org/t/download-event-report/64647 "2025-04-24T21:14:19Z")

</div>

HI Community, can you help me to download event reports using api? I have created a report in Event Report App and have saved it as a favorite. I need to fetch that report using api. Thanks

---

## [Fetch request to web API returns HTML instead of JSON](https://community.dhis2.org/t/fetch-request-to-web-api-returns-html-instead-of-json/63760)

<div class="topic-metadata">

**Author:** [@nasha](https://community.dhis2.org/u/nasha)\
**Replies:** 4\
**Last updated:** [23 April 2025 12:58 UTC](https://community.dhis2.org/t/fetch-request-to-web-api-returns-html-instead-of-json/63760 "2025-04-23T12:58:49Z")

</div>

Hello everyone, I’ve been trying to connect a script to the web API with a custom token, as shown below. However, each time, it returns an HTML file instead of a JSON response. The HTML seems to be the login page. I saw…

---

## [AI/ML-Powered DHIS2 Monitoring with OpenSearch](https://community.dhis2.org/t/ai-ml-powered-dhis2-monitoring-with-opensearch/64637)

<div class="topic-metadata">

**Author:** [@dcastelao](https://community.dhis2.org/u/dcastelao)\
**Replies:** 0\
**Last updated:** [23 April 2025 07:43 UTC](https://community.dhis2.org/t/ai-ml-powered-dhis2-monitoring-with-opensearch/64637 "2025-04-23T07:43:36Z")

</div>

This community innovation has been accepted at the 2025 DHIS2 Annual Conference AI/ML-Powered DHIS2 Monitoring with OpenSearch As DHIS2 deployments grow, real-time monitoring, security, and performance optimization …

---

## [validationResults endpoint issue](https://community.dhis2.org/t/validationresults-endpoint-issue/63957)

<div class="topic-metadata">

**Author:** [@didate](https://community.dhis2.org/u/didate)\
**Replies:** 4\
**Last updated:** [1 April 2025 15:53 UTC](https://community.dhis2.org/t/validationresults-endpoint-issue/63957 "2025-04-01T15:53:08Z")

</div>

Hello everyone, I have noticed an issue on the api/validationResults endpoint. Even if I change the page number I still get the same result. dhis-dev-url/api/validationResults.json?page=1&pageSize=50&order=id:asc and …

---

## [Export data for external analysis using API](https://community.dhis2.org/t/export-data-for-external-analysis-using-api/46059)

<div class="topic-metadata">

**Author:** [@abdulsubbooh](https://community.dhis2.org/u/abdulsubbooh)\
**Replies:** 9\
**Last updated:** [3 March 2025 11:40 UTC](https://community.dhis2.org/t/export-data-for-external-analysis-using-api/46059 "2025-03-03T11:40:36Z")

</div>

Hi folks, I want to export the HIV aggregated data from DHIS2 to our database for external analysis. This needs to be implemented using web APIs. I am doing it in JAVA using the DHIS2 JAVA client. Right now I am able …

---

## [Bulk events import - random errors in 2.34 - UID is not a valid data element](https://community.dhis2.org/t/bulk-events-import-random-errors-in-2-34-uid-is-not-a-valid-data-element/41462)

<div class="topic-metadata">

**Author:** [@JIMENEZ\_POMARETA\_Ram](https://community.dhis2.org/u/JIMENEZ_POMARETA_Ram)\
**Replies:** 1\
**Last updated:** [15 February 2025 16:44 UTC](https://community.dhis2.org/t/bulk-events-import-random-errors-in-2-34-uid-is-not-a-valid-data-element/41462 "2025-02-15T16:44:52Z")

</div>

Hello, I am experiencing an strange error when importing lot of events through the API. The events are quite simple: 1 event per orgUnit with the same structure, containing only 1 value for the same dataElement in the p…

---

## [Send data to DHIS2 instance from R](https://community.dhis2.org/t/send-data-to-dhis2-instance-from-r/52665)

<div class="topic-metadata">

**Author:** [@Tumaini\_Kilimba](https://community.dhis2.org/u/Tumaini_Kilimba)\
**Replies:** 10\
**Last updated:** [19 February 2024 17:03 UTC](https://community.dhis2.org/t/send-data-to-dhis2-instance-from-r/52665 "2024-02-19T17:03:43Z")

</div>

Dear Community, I am new to DHIS2 and my objective is quite specific. We have a Project Management System based on DHIS2, where data is entered manually. Knowing that DHIS2 has an API, could I be pointed towards how I …

---

## [PR with 'inOrgUnitGroup' does not trigger on API import](https://community.dhis2.org/t/pr-with-inorgunitgroup-does-not-trigger-on-api-import/61213)

<div class="topic-metadata">

**Author:** [@WumiOjo](https://community.dhis2.org/u/WumiOjo)\
**Replies:** 3\
**Last updated:** [13 January 2025 18:47 UTC](https://community.dhis2.org/t/pr-with-inorgunitgroup-does-not-trigger-on-api-import/61213 "2025-01-13T18:47:43Z")

</div>

Hello everyone, We have configured a number of program rules using inOrgUnitGroup to restrict triggering to specific organisation unit level in the hierarchy. They work wonderfully within the event capture interface, ho…

---

## [Seeking DHIS2 Implementation Roles](https://community.dhis2.org/t/seeking-dhis2-implementation-roles/62350)

<div class="topic-metadata">

**Author:** [@cpharaoh](https://community.dhis2.org/u/cpharaoh)\
**Replies:** 2\
**Last updated:** [23 December 2024 09:48 UTC](https://community.dhis2.org/t/seeking-dhis2-implementation-roles/62350 "2024-12-23T09:48:48Z")

</div>

I am a Software Engineer Intern with hands-on experience in DHIS2 implementation and tracker configuration for health information systems. I have worked on different projects including development and deployment of the I…

---

## [API query: /api/tracker/trackedEntities with all information](https://community.dhis2.org/t/api-query-api-tracker-trackedentities-with-all-information/62709)

<div class="topic-metadata">

**Author:** [@fernandoshake](https://community.dhis2.org/u/fernandoshake)\
**Replies:** 6\
**Last updated:** [18 December 2024 12:34 UTC](https://community.dhis2.org/t/api-query-api-tracker-trackedentities-with-all-information/62709 "2024-12-18T12:34:42Z")

</div>

Hi all, How can I get the following information through an API query: tracked entity instances attribute values and all the information (data element names and the values entered on them, etc ) of one specific program s…

---

## [We provide DHIS2 Services - Please share](https://community.dhis2.org/t/we-provide-dhis2-services-please-share/61557)

<div class="topic-metadata">

**Author:** [@Don\_Vieira](https://community.dhis2.org/u/Don_Vieira)\
**Replies:** 1\
**Last updated:** [15 October 2024 08:44 UTC](https://community.dhis2.org/t/we-provide-dhis2-services-please-share/61557 "2024-10-15T08:44:35Z")

</div>

Need DHIS2 Services? We specialize in Health Information Systems, with a focus on DHIS2. Our global digital footprint includes completing over 50 projects across 3 continents and 13 countries. :telephone\_receiver: What…

---

## [Creation of Personalised Feedback Report for CHW Supervision](https://community.dhis2.org/t/creation-of-personalised-feedback-report-for-chw-supervision/61354)

<div class="topic-metadata">

**Author:** [@Jake\_Lamers](https://community.dhis2.org/u/Jake_Lamers)\
**Replies:** 3\
**Last updated:** [4 October 2024 15:22 UTC](https://community.dhis2.org/t/creation-of-personalised-feedback-report-for-chw-supervision/61354 "2024-10-04T15:22:35Z")

</div>

Hello, I’m sharing a project we’re currently working on at PSI-Sierra Leone and would like to receive feedback. I’ve created a basic proof of concept in Python to better describe what we’re aiming to create. You can fin…

---

## [Api Finding an Element by ID](https://community.dhis2.org/t/api-finding-an-element-by-id/61129)

<div class="topic-metadata">

**Author:** [@Jake\_Lamers](https://community.dhis2.org/u/Jake_Lamers)\
**Replies:** 2\
**Last updated:** [20 September 2024 11:33 UTC](https://community.dhis2.org/t/api-finding-an-element-by-id/61129 "2024-09-20T11:33:24Z")

</div>

Hello I am wondering if given an id for a indicator ie “qDXW7WMLT99” or indicator name ie ARV Adult - 1d = AZT/3TC+DTG 150/300mg + 50mg 1st line if there is a way using the api to find the data elements location so I can…

---

## [DHIS2 API Request Error 409: Data Elements Conflict in Analytics Query for Aggregation Type](https://community.dhis2.org/t/dhis2-api-request-error-409-data-elements-conflict-in-analytics-query-for-aggregation-type/60990)

<div class="topic-metadata">

**Author:** [@Jake\_Lamers](https://community.dhis2.org/u/Jake_Lamers)\
**Replies:** 9\
**Last updated:** [12 September 2024 11:12 UTC](https://community.dhis2.org/t/dhis2-api-request-error-409-data-elements-conflict-in-analytics-query-for-aggregation-type/60990 "2024-09-12T11:12:46Z")

</div>

Hello I am trying to download all data for a DE\_GROUP for a specific org level but I keep getting the same error. dhis2.exceptions.RequestException: code: 409, url: https://sl.dhis2.org/hmis23/api/analytics?dimension=pe…

---

## [\[Knowledge Sharing\] How to fetch data values using python & dhis2 api using Analytics](https://community.dhis2.org/t/knowledge-sharing-how-to-fetch-data-values-using-python-dhis2-api-using-analytics/60963)

<div class="topic-metadata">

**Author:** [@Jake\_Lamers](https://community.dhis2.org/u/Jake_Lamers)\
**Replies:** 2\
**Last updated:** [11 September 2024 12:55 UTC](https://community.dhis2.org/t/knowledge-sharing-how-to-fetch-data-values-using-python-dhis2-api-using-analytics/60963 "2024-09-11T12:55:39Z")

</div>

Hello everyone, I wanted to share my approach to requesting data from DHIS2 using the dhis2.py Python package version 2.3.0. While I found various discussions about querying through dataElements, I encountered issues w…

---

## [Issue with Program Rule Calculations Not Updating via API](https://community.dhis2.org/t/issue-with-program-rule-calculations-not-updating-via-api/60782)

<div class="topic-metadata">

**Author:** [@diallotafsir52](https://community.dhis2.org/u/diallotafsir52)\
**Replies:** 2\
**Last updated:** [3 September 2024 07:40 UTC](https://community.dhis2.org/t/issue-with-program-rule-calculations-not-updating-via-api/60782 "2024-09-03T07:40:09Z")

</div>

Hello DHIS2 Community, I’ve encountered a challenge while working with program rules in the DHIS2 Tracker. Specifically, I’ve set up a program rule to calculate a field value based on other inputs. This works perfectly …

---

## [Patch request cannot add category options to categories](https://community.dhis2.org/t/patch-request-cannot-add-category-options-to-categories/60061)

<div class="topic-metadata">

**Author:** [@plinnegan](https://community.dhis2.org/u/plinnegan)\
**Replies:** 5\
**Last updated:** [24 July 2024 15:24 UTC](https://community.dhis2.org/t/patch-request-cannot-add-category-options-to-categories/60061 "2024-07-24T15:24:04Z")

</div>

The patch api does not seem to work for adding category options to categories. I have not tested other similar list properties. Here’s an example request (you may need to change the category option uid in case it’s alre…

[Next page](https://community.dhis2.org/tag/api/47.md?match_all_tags=true&page=1&tags%5B%5D=api)
