=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml'
--- src/docbkx/en/dhis2_user_man_web_api.xml 2014-03-17 18:41:45 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2014-03-18 14:57:08 +0000
@@ -4143,8 +4143,13 @@
+ query
+ No
+ Query string.
+
+
item
- Yes
+ No
Query items referring to attributes. Param can be repeated any number of items.
Filters can be applied to a dimension on the format
<attribute-id>:<operator>:<filter>. Filter values are case-insensitive.
@@ -4192,9 +4197,21 @@
Note that you can specify items with filters for constraining the instances to return, or
items without filters in order to include the attribute in the response without any
- constraints. To query for instances using one attribute with a filter and one attribute
- without a filter, with one organisation unit using the descendants organisation unit query
- mode, you can issue a query like this:
+ constraints. The following rules apply to the query parameters.
+
+
+ Exactly one of the query and item parameters must be specified in a query (not both).
+
+
+ Only one of the program and trackedEntity parameters can be specified in the same query (none or one,
+ not both).
+
+
+ To query for instances using one attribute with a filter and one attribute without a
+ filter, with one organisation unit using the descendants organisation unit query mode, you can
+ issue a query like this:
api/trackedEntityInstances.json?item=zHXD5Ve1Efw:EQ:A&item=AMpUYgxuCaE&ou=DiszpKrYNg8;yMCshbaVExv
To constrain the response to instances which are part of a specific program you can
include a program query parameter like this: