Paged queries with object-based requests

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

To use a paged query with object-based requests:

  • In the first request, use a count entry with a value of zero to get a response that does not include any object records but contains a totalResults value that specifies the total number of objects that meet the query criteria.
  • In each request after the first, optionally specify a count entry. If you omit the count entry, the result set includes at most 100 objects.
  • After each request, check the value of the code property of the status entry to determine whether the result set contains the last object that meets the criteria:
    • If the value is INCOMPLETE, more results remain. Request another page.
    • If the value is COMPLETE, the result set includes the last object that meets the query criteria.