Skip to main content

Export events for populator template

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint

/i/data-manager/export-event-to-populator

Overview

Exports event/segment template data as a downloadable JSON file for populator usage.

Authentication

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions

Requires data_manager Read permission.

Request Parameters

ParameterTypeRequiredDescription
app_idStringYesTarget app ID.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples

/i/data-manager/export-event-to-populator?
app_id=64f5c0d8f4f7ac0012ab3456

Response

Success Response

[
{
"name": "populator",
"data": [
{
"name": "Events Export Scheme(6991c75b024cb89cdc04efd2)",
"isDefault": false,
"events": [
{
"key": "Playback Started",
"duration": {
"isActive": false,
"minDurationTime": 0,
"maxDurationTime": 0
},
"sum": {
"isActive": false,
"minSumValue": 0,
"maxSumValue": 0
},
"segmentations": [
{
"key": "Content Type",
"values": [
{ "key": "Movie", "probability": "100" }
]
}
]
}
]
}
]
}
]

Note: the endpoint returns this JSON as downloadable file content (Content-Type: text/json + attachment headers), not inside a result wrapper.

Response Fields

FieldTypeDescription
[]ArrayPopulator template containers.
[].nameStringTemplate name (currently populator).
[].data[]ArrayExport bundles.
[].data[].events[]ArrayExported event definitions for populator.
[].data[].events[].segmentations[]ArraySegment groups and values per exported event.

Error Responses

  • 401
{
"result": "No app_id provided"
}
  • 500
{
"result": "Error"
}

Behavior

  • Collects events and segmentation info from drill metadata.
  • Builds populator template structure with sequence defaults and behavior defaults.
  • Returns downloadable JSON file named countly_data_manager_event_export_{app_id}.json.

Operational Considerations

  • Endpoint builds export payload and returns it as attachment in one request.
  • Apps with high event/segmentation cardinality can produce very large payloads and slower response times.
Implementation details

Configuration Impact

SettingDefaultAffectsUser-visible impact
drill.list_limitSystem defaultMaximum number of segmentation values exported per segmentExport output truncates each segment's value list to this limit.

Audit & System Logs

  • This endpoint does not emit /systemlogs actions.

Database Collections

CollectionUsed forData touched by this endpoint
countly_drill.drill_metaEvent/segment metadata and value samplingReads event segment definitions and sampled values (values) used to build populator segment options.
countly.eventsEvent catalog fallbackReads event list/segment arrays for events that do not have matching drill list-value documents.