---
title: "Update Customer Trait"
method: PUT
path: "/v1/update-customer-trait/{trait_id}"
tags: ["Customer Traits"]
---

# Update Customer Trait

`PUT /v1/update-customer-trait/{trait_id}`

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

## Path parameters

- `trait_id` string, uuid, required

## Headers

- `X-API-Key` string, required

## Request body

- UpdateCustomerTraitRequest — Request model for updating a customer trait definition.
  - `name` string, nullable — Name of the trait
  - `data_type` 'BOOLEAN' | 'STRING' | 'DATE' | 'NUMBER' — Enum for trait data types.
  - `default_value` unknown
  - `sync_existing` boolean, nullable — If True, sync changes to existing digital humans' customer_trait_values records

## Response `200`

Successful Response

- CustomerTraitResponse — Response model for customer trait operations.
  - `id` string, required — Unique identifier for the customer trait
  - `agent_id` integer, required — ID of the agent this trait belongs to
  - `name` string, required — Name of the trait
  - `data_type` 'BOOLEAN' | 'STRING' | 'DATE' | 'NUMBER', required — Enum for trait data types.
  - `default_value` unknown
  - `created_at` string, date-time, required — When the trait was created

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/getbluejay/apis/bluejay-api.md) · [All operations](https://skmtc.net/getbluejay/apis/bluejay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbluejay/bluejay-api/revisions/f48cef80963f/schema)
