Update an attribute definition
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Human-readable name.
1Optional description.
Change the attribute's value type. Allowed only while NO stored value would conflict with the new type (else rejected — clear the conflicting values, or delete + recreate). Fixes a wrong type inferred from a first mistyped upsert. scope and codeName stay immutable.
number, string, boolean, list, datetime Response
Attribute definition updated
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