To limit the response body to specific properties, use the include query string parameter.
The value for the include query string parameter is a list of properties separated by bars (|). You must URL encode the bars as %7C. Include a forward slash before every property name.
The following request includes only the aboutMe property and the address property in a response body:
1/chatter/users/me?include=/aboutMe%7C/address
The following rules describe how to use the include query parameter.
Forward Slashes
Include a forward slash (/) before property names or the request returns an error.
Original output:
1{2 "bar": "bar value",3 "baz": "baz value"4}
Include value: include=bar
Filtered output: 400 error with error code INVALID_FILTER_VALUE.
Filter properties by name.
Original output:
1{2 "bar": "bar value",3 "baz": "baz value"4}
Include value: include=/bar
Filtered output:
1{2 "bar": "bar value"3}
Ignore Top-Level Properties
Top-level properties are ignored. Note there is no error when you try this.