Browse across a given resource’s includes in the data partition.
In order to initiate a browse session, you can specifiy in the body the v1BrowseIncludesRequest object with the following properties:
includes: The list of includes to browse. It can be used to include only a relationship (e.g. worksAt) or a relationship and the targeted resource (e.g. worksAt.clinic).perPage: The number of results to return per batch. Defaults to 100.A browse session lives for 5 minutes, after which it will be automatically closed and a 404 error will be returned if you try to continue browsing. The session is a rolling session, meaning that each new request will extend the session by 5 minutes from the time of the request.
A browse response contains the following properties:
hits: An array of results that match the browse session.meta: An object containing metadata about the browse session, including the cursor and the total number of results available in the browse session.You should use the hits length to check if there are more results to browse.
If hits > 0 is true, you can use the meta.cursor to fetch the next batch of results.
If hits > 0 is false, it means that you have reached the end of the browse session and there are no more results to browse.
Key of the collection.
The unified resource id.
Parameters to initiate or continue a browse includes session.
To initiate a session, provide the list of includes to browse and optionally the number of results to return per page.
To continue a session, provide the cursor returned from a previous response.
The cursor representing the current BrowseIncludes session.
The list of includes to browse. It can be used to include only a relationship (e.g. worksAt) or a relationship and the targeted resource (e.g. worksAt.clinic).
The number of results to return per batch. Defaults to 100.
1 <= x <= 1000A successful response containing the first batch of results and a cursor to continue browsing. 5 minutes after the request, the cursor will expire and a 404 error will be returned if you try to continue browsing.