Skip to main content

Populator - API Documentation

Overview​

The Populator feature manages reusable data-generation templates and app environments used to seed synthetic users for testing and demos.

Feature Workflows​

Template workflow​

  1. Create a template with target platform/event/user definitions.
  2. Read and validate template payloads for reuse.
  3. Edit template definitions as needed.
  4. Remove template when no longer needed.

Environment workflow​

  1. Save an environment with generated user records from a template.
  2. Check environment name uniqueness before creating additional environments.
  3. List and read environment users with pagination/search.
  4. Remove environment and related generated user records when finished.

Configuration & Settings​

No Populator-specific runtime setting is consumed by the documented endpoints.

Implementation details

Database Collections

CollectionPurpose
countly.populator_templatesStores reusable population templates (platforms, events, users, behavior payloads).
countly.populator_environmentsStores environment metadata (name, templateId, appId, creation time).
countly.populator_environment_usersStores generated users per environment.
countly.membersUsed for authentication/permission validation and audit actor context.
countly.appsUsed for app-level validation in rights checks.