Authorizations
Headers
Optional header to respect review settings for mutation endpoints.
Body
The name of the source, serving as its primary identifier.
The SQL query or statement used to extract data from the source.
The name of the column containing timestamp data for the source.
Array defining the mapping between Statsig unit IDs and their respective source columns.
An optional description for the source, providing context and details about its purpose and usage.
Optional array of tags to categorize the source, facilitating easier organization and retrieval.
Indicates whether the timestamp should be treated as a day-level granularity.
The type of source, indicating whether it is a database table or a custom query.
table
, query
The name of the database table if the source type is "table".
The name of the date partition column if the source type is "table". Can be undefined.
Optional array defining mappings for custom fields using specific formulas.
Specifies if the source can only be edited via the Console API.
Marks the metric source as verified, indicating trustworthiness within the organization.
false
Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
{
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
}
Optional field indicating the team name responsible for the metric, aiding in accountability and management.
Optional field indicating the team ID responsible for the metric, aiding in accountability and management.
Skips persisting the source (used to validate that inputs are correct)