Skip to main content
PATCH
Update a computed trait

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

id
string
required

Body

application/json
name
string

Lowercase identifier the value is written under (e.g. orders_last_30d).

definition
object

The computed-trait DSL: an aggregate (agg) over events named event_type within a window_days lookback, optionally narrowed by an equality predicate map over event properties.

schedule_minutes
integer

Recompute cadence in minutes.

Required range: 1 <= x <= 525600
status
enum<string>
Available options:
active,
paused

Response

The updated computed trait

data
object

A declarative computed trait — an aggregate over a tenant's CDP events that the scheduled evaluator materialises onto each contact's traits.

meta
object