← Back to team overview

dhis2-devs-core team mailing list archive

Audits Web-API

 

Hi everyone

I have added 3 new APIs for getting audit information for:
DataValue
TrackedEntityDataValue (audit is new for 2.22)
TrackedEntityAttributeValue (audit is new for 2.22)

/api/audits/dataValue
  de=XXX (one or more data element)
  pe=XXX (one or more periods)
  ou=XXX (one or more org units)
  co=XXX (category option combo)
  cc=XXX (attribute option combo)
  auditType=UPDATE/DELETE

/api/audits/trackedEntityDataValue
  de=XXX (one or more data element)
  ps=XXX (one or more program stage instances)
  auditType=UPDATE/DELETE

/api/audits/trackedEntityAttributeValue
  tea=XXX (one or more tracked entity attributes)
  te=XXX (one or more tracked entity instances)
  auditType=UPDATE/DELETE

At the very least TC/EC clients should be updated so you can fetch old
audit data. Probably something interesting for Android clients also?

Let me know if there are any issues, or if you need more specific query
parameters, I will try and document this tomorrow, paging will also be
added.

--
Morten

Follow ups