v3

OpenAPI 3.1.02026-07-31350397683.8 KB
Customer Traits

Update Customer Trait

Update a customer trait definition.

Args: trait_id: UUID of the customer trait to update trait_request: The trait update request data request: FastAPI request object auth: Authentication credentials

Returns: CustomerTraitResponse with the updated trait details

put/v1/update-customer-trait/{trait_id}

Path parameters

trait_idstring uuid required

Headers

X-API-Keystring required

API key required to authenticate requests.

Request body

namestring nullable

Name of the trait

data_type'BOOLEAN' | 'STRING' | 'DATE' | 'NUMBER'

Enum for trait data types.

{"stackTrail":"components:schemas:UpdateCustomerTraitRequest:properties:default_value:anyOf","oasType":"schema","type":"unknown","title":"Default Value","description":"Default value for this trait (will be converted based on data_type)","nullable":true}
sync_existingboolean nullable

If True, sync changes to existing digital humans' customer_trait_values records

Response

Successful Response

idstring required

Unique identifier for the customer trait

agent_idinteger required

ID of the agent this trait belongs to

namestring required

Name of the trait

data_type'BOOLEAN' | 'STRING' | 'DATE' | 'NUMBER' required

Enum for trait data types.

{"stackTrail":"components:schemas:CustomerTraitResponse:properties:default_value:anyOf","oasType":"schema","type":"unknown","title":"Default Value","description":"Default value for this trait (stored as JSONB)","nullable":true}
created_atstring date-time required

When the trait was created