Create Qualifying Event
https://statsigapi.net/console/v1/experiments/qualifying_eventsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Body
application/jsonnamestringrequiredThe name of the source, serving as its primary identifier.
descriptionstringAn optional description for the source, providing context and details about its purpose and usage.
tagsstring[]Optional array of tags to categorize the source, facilitating easier organization and retrieval.
sqlstringrequiredThe SQL query or statement used to extract data from the source.
timestampColumnstringrequiredThe name of the column containing timestamp data for the source.
timestampAsDaybooleanIndicates whether the timestamp should be treated as a day-level granularity.
idTypeMappingobject[]requiredArray defining the mapping between Statsig unit IDs and their respective source columns.
Show child attributes
statsigUnitID[]stringrequiredThe identifier mapping for Statsig units.
column[]stringrequiredThe corresponding column name in the source that relates to the Statsig unit ID.
sourceTypestringThe type of source, indicating whether it is a database table or a custom query.
tableNamestringThe name of the database table if the source type is "table".
datePartitionColumnstringThe name of the date partition column if the source type is "table". Can be undefined.
customFieldMappingobject[]Optional array defining mappings for custom fields using specific formulas.
Show child attributes
key[]stringrequiredThe identifier for the custom field mapping.
formula[]stringrequiredThe formula or expression used to compute the custom field value.
isReadOnlybooleanSpecifies if the source can only be edited via the Console API.
isVerifiedbooleanMarks the metric source as verified, indicating trustworthiness within the organization.
disableCUREbooleanDisable CURE for all metrics built from this metric source
ownerobjectSchema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
ownerIDstringID of the owner
ownerTypestringType of the owner (e.g., SDK_KEY or USER)
ownerNamestringThe name of the owner. This field is optional.
ownerEmailstringThe email of the owner. This field is optional.
teamstringOptional field indicating the team name responsible for the metric, aiding in accountability and management.
teamIDstringOptional field indicating the team ID responsible for the metric, aiding in accountability and management.
dryRunbooleanSkips persisting the source (used to validate that inputs are correct)
skip_validationbooleanSkips running SQL validation for the source. Requires all_columns and column_types when true. Availability is gated.
all_columnsstring[]Column names to persist when skip_validation is true. Optional otherwise.
column_typesstring[]Column types aligned with all_columns when skip_validation is true. Optional otherwise.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
namestringrequiredThe name of the source, serving as its primary identifier.
descriptionstringrequiredA detailed description of the source, providing context and usage information.
tagsstring[]Optional tags for categorizing the source and improving searchability.
sqlstringrequiredThe SQL query or statement used to extract data from the source.
timestampColumnstringrequiredThe name of the column containing timestamp data for the source.
timestampAsDaybooleanIndicates whether the timestamp should be treated as a day-level granularity.
idTypeMappingobject[]requiredArray defining the mapping between Statsig unit IDs and their respective source columns.
Show child attributes
statsigUnitID[]stringrequiredThe identifier mapping for Statsig units.
column[]stringrequiredThe corresponding column name in the source that relates to the Statsig unit ID.
sourceTypestringThe type of source, indicating whether it is a database table or a custom query.
tableNamestringThe name of the database table if the source type is "table".
datePartitionColumnstringThe name of the date partition column if the source type is "table". Can be undefined.
customFieldMappingobject[]Optional array defining mappings for custom fields using specific formulas.
Show child attributes
key[]stringrequiredThe identifier for the custom field mapping.
formula[]stringrequiredThe formula or expression used to compute the custom field value.
isReadOnlybooleanSpecifies if the source can only be edited via the Console API.
isVerifiedbooleanMarks the metric source as verified, indicating trustworthiness within the organization.
disableCUREbooleanDisable CURE for all metrics built from this metric source
ownerobjectSchema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
ownerIDstringID of the owner
ownerTypestringType of the owner (e.g., SDK_KEY or USER)
ownerNamestringThe name of the owner. This field is optional.
ownerEmailstringThe email of the owner. This field is optional.
teamstringOptional field indicating the team name responsible for the metric, aiding in accountability and management.
teamIDstringOptional field indicating the team ID responsible for the metric, aiding in accountability and management.
statusintegerrequiredmessagestringrequiredstatusintegerrequiredmessagestringrequiredWas this helpful?