1.60 Data sets

The dataSets resource follows the standard conventions as other metadata resources in DHIS2. This resource supports some additional query parameters.

/api/26/dataSets

To retrieve the version of a data set you can issue a GET request:

GET /api/26/dataSets/<uid>/version

To bump (increase by one) the version of a data set you can issue a POST request:

POST /api/26/dataSets/<uid>/version

1.60.1 DataSet Notification Template

The dataset notification templates resource follows the standard conventions as other metadata resources in DHIS2.

GET /api/26/dataSetNotficationTemplates

To retrieve data set notification template you can issue a GET request:

GET /api/26/dataSetNotficationTemplates/<uid>

To add data set notification template you can issue a POST request:

POST /api/26/dataSetNotficationTemplates

To delete data set notification template you can issue a DELETE request:

DELETE /api/26/dataSetNotficationTemplates/<uid>

JSON payload sample is given below

{
    "name": "dataSetNotificationTemplate1",
    "notificationTrigger": "COMPLETION",
    "relativeScheduledDays": 0,
    "notificationRecipient": "ORGANISATION_UNIT_CONTACT",
    "dataSets": [{
        "id": "eZDhcZi6FLP"
    }],
    "deliveryChannels": ["SMS"],
    "subjectTemplate": "V{data_name}",
    "messageTemplate": "V{data_name}V{complete_registration_period}",
    "sendStrategy": "SINGLE_NOTIFICATION"
}