Create an attribute definition
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Project ID
Body
Which object the attribute belongs to: user, company, companyMembership, or eventDefinition (an event attribute — pre-defines an event property; attach it to events via the event-definitions surface. Tracking also auto-registers event properties at ingestion, so pre-defining is only needed to pin the type or attach before the first track).
user, company, companyMembership, eventDefinition The attribute value type.
number, string, boolean, list, datetime Stable identifier, unique per project + scope. Immutable. Must start with a letter, then letters/digits/underscores, 2–100 chars.
2 - 100^[a-zA-Z][a-zA-Z0-9_]*$Human-readable name.
1Optional description.
Response
Attribute definition created
attributeDefinition Built-in attribute shipped by Usertour: it cannot be edited or deleted.
Value type. random_ab / random_number are SYSTEM-GENERATED bucketing types (stable per-user random values for splits) — they appear in reads and conditions but cannot be created through the API.
number, string, boolean, list, datetime, random_ab, random_number Which object the attribute belongs to. eventDefinition = an event attribute (attach it to events via the event-definitions surface).
user, company, companyMembership, eventDefinition