Customer Traits

Update Customer Trait

Changed on

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}

Request

  • Base URL
    https://api.getbluejay.ai
  • URL
    https://api.getbluejay.ai/v1/update-customer-trait/{trait_id}
  • Auth
    HTTPBearer (a scheme the document does not define)

Path parameters

trait_idstring uuid required

Headers

X-Organization-Idstring
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.

default_valueunknown
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.

default_valueunknown
created_atstring date-time required

When the trait was created

Changes