mixpanel_custom_property (Resource)¶
Manages a Mixpanel custom property (mixpanel_custom_property) — a computed property definition that derives new values from existing event or user properties through formulas or transformations.
Example Usage¶
resource "mixpanel_custom_property" "revenue_bucket" {
project_id = 1234567
name = "revenue_bucket"
display_name = "Revenue Bucket"
resource_type = "event"
description = "Bucketed revenue range"
example_value = "$100-$500"
}
Create-Only Fields¶
resource_type and data_group_id are immutable on the server (the update
validator rejects a changed value with 400). Both are marked ForceNew:
changing either plans a replacement (destroy + create) instead of an in-place
update.
Schema¶
Optional¶
behavior(String)composed_properties(String)custom_property_id(Number)data_group_id(String)description(String)display_formula(String)display_options(String)example_value(String)global_access_type(String)is_locked(Boolean)is_visible(Boolean)name(String)project_id(Number)resource_type(String)share_with_project(Boolean) Whether to share this entity with the whole project after creation. Entities created by a service account are otherwise visible only to that service account. Defaults totrue. See the Entity sharing guide.
Read-Only¶
can_update_basic(Boolean)created(String)is_session_scoped(Boolean)join_property_type(String)mapped_data_group_id(String)modified(String)project(Number)property_type(String)referenced_by(List of Number)referenced_directly_by(List of Number)referenced_raw_event_properties(List of String)references_borrowed_property(Boolean)user(Number)
Import¶
Custom properties can be imported using the composite PROJECT_ID:ID format: