Popular Help Content

No popular content.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added reference to a new "case_id" parameter

...

The forms can be filtered using the following parameters, which also control paging of the output records.

NameDescriptionExample
xmlns

Form XML namespace (optional)

For help looking up a form's XMLNS see Finding a Form's XMLNS

xmlns=http://openrosa.org/formdesigner/dd3190c7dd7e9e7d469a9705709f2f6b4e27f1d8

limitThe maximum number of records to return. Default: 20. Maximum: 1000limit=100
offsetThe number of records to offset in the results. Default: 0.offset=100
indexed_on_startA date (and time). Will return only forms that have had data modified since the passed in date. This is the recommended field to use for pagination.indexed_on_start=2021-01-01 (or with time 2021-01-01T06:05:42)
indexed_on_endA date (and time). Will return only forms that have had data modified before the passed in date. indexed_on_end=2021-01-01 (or with time 2021-01-01T06:05:42)
received_on_startA date (and time). Will return only forms that were received after the passed in date.received_on_start=2012-01-01 (or with time 2012-01-01T06:05:42)
received_on_endA date (and time). Will return only forms that were received before the passed in date.received_on_end=2013-02-03 (or with time 2013-11-25T06:05:42)
appVersionThe exact version of the CommCare application used to submit the form (this will be large and involved; it is intended for programmatic use)appVersion=v2.6.1%20(3b8ee4-e3dc9f-unvers-2.1.0-Nokia%2FS40-native-input)%20build%207313%20App%20%237300%20b%3A2013-Jun-04%20r%3A2013-Jul-18
include_archivedWhen set to 'true' archived forms will be included in the response.include_archived=true
app_idThe returned records will be limited to the application definedapp_id=02bf50ab803a89ea4963799362874f0c
indexed_onThe returned records will be ordered according to indexed_on date, starting from the oldest dateorder_by=indexed_on
server_modified_onThe returned records will be ordered according to server_modified_on date, starting from the oldest dateorder_by=server_modified_on
received_onThe returned records will be ordered according to server received_on date, starting from the oldest dateorder_by=received_on
case_idA case UUID.  Will only return forms which updated that case.
case_id=4cf7736e-2cc7-4d46-88e3-4b288b403362

Sample usage:

Code Block
https://www.commcarehq.org/a/[domain]/api/v0.5/form/

...