Looks up cached per-bookmark materialized cohorts for a dataset. A bookmark id returned under entries is a cache hit, including when its materializedCohort is null; only ids with no cached row are returned under missing. Fails if the dataset's PA config cannot be resolved server side, since the cache key cannot then be built.

post/cohort-cache/lookup

Request

  • Base URL
    /analytics-svc/api/services/ (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /analytics-svc/api/services/cohort-cache/lookup
  • Auth
    none declared

Request body

datasetIdstring required

Id of dataset

bookmarkIdsstring[] required

Bookmark ids to look up

Response

Success

entriesobject required

Cached value keyed by bookmark id. A present key is a hit, even when materializedCohort is null.

missingstring[] required

Bookmark ids with no cached row at all

staleboolean required

True when at least one returned entry is past its TTL. Such entries are still hits; the caller can serve them and refresh in the background.

Changes