Specify Response Sizes

Use filter parameters to return only the data the application needs. To specify the response size by group (big, medium, or small), use filterGroup as a request parameter or in a request body. In addition, to exclude or include specific properties, use either exclude or include as a request parameter or in a request body.

To exclude or include properties, use a path to select a node. To find the path, make a request to the resource and ask for an XML response instead of JSON. The XML includes node names and JSON doesn’t. To request an XML response, append .xml to the resource, for example /services/data/v44.0/chatter/feeds/record/a07B00000079vKZIAY/feed-elements.xml. Copy the XML into a file and open it in a browser or an IDE that generates an XML tree. Identify the path to the node you want to include or exclude and use it in your request: /services/data/v44.0/chatter/feeds/record/a07B00000079vKZIAY/feed-elements.xml?exclude=/elements/feedElement/actor.

Important