Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Response groups

Ask the REST API for exactly the parts of an answer a screen needs with the ResponseGroups parameter - the groups each route knows (Metadata, Locations, Fields, FieldValues), the defaults that are always added, both…

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/help/mobile-app-developers/rest-api/response-groups.md

On this page

Response groups

This page is for app developers who want small answers on a slow mobile connection and complete answers where a screen needs them. Response groups are the REST API's switch for that.

Contents

  1. The groups per route
  2. Writing the parameter
  3. Defaults are always added
  4. Choosing groups for screens

The groups per route

From the constants of ezp7xRestContentController:

RouteGroupAddsDefault
GET /content/node/<id>, GET /content/object/<id>Metadatathe metadata objectyes
sameLocationsthe locations listno
sameFieldsthe fields mapno
GET .../fields, GET .../field/<identifier>FieldValuesthe fields map (or the one field)yes
sameMetadatathe metadata object of the contentno
GET /content/node/<id>/list...Metadatathe list metadata: childrenCount, parentNodeIdyes
sameFieldsa fields map in each childno
GET /content/node/<id>/childrenCountMetadatametadata with childrenCountyes

Names are case-sensitive: Fields, not fields.

Writing the parameter

Both forms are accepted by the request parser:

?ResponseGroups=Metadata,Locations,Fields
?ResponseGroups[]=Metadata&ResponseGroups[]=Locations&ResponseGroups[]=Fields

The second form is what some HTTP libraries make from an array. Before 6.0.15 it ended in an error page; the parser now accepts it (comment in http_parser.php).

Defaults are always added

A route's default groups are included whether you name them or not: asking for ?ResponseGroups=Fields on a node read still gives metadata. The answer lists the groups that were applied in requestedResponseGroups, which is useful when you debug a missing key.

Choosing groups for screens

ScreenCallWhy
A list of titles.../list/offset/0/limit/20metadata has objectName, classIdentifier, nodeId; no fields needed
A list of cards with a teaser and an image.../list/offset/0/limit/20?ResponseGroups=Fieldsevery child carries its fields
A detail screen/content/node/<id>?ResponseGroups=Fieldsmetadata and all fields in one call
A badge with a count/content/node/<id>/childrenCountone number, no items
Refreshing one value/content/node/<id>/field/<identifier>one field only

Fields on a list returns every field of every child. For classes with many or large fields, measure the size of the answer on a phone connection and consider reading details only when the user opens an item.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x