PUT /v1/customers/{customer_account_id}/traits/{trait_key}
TenantService_PutCustomerTrait
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
customer_account_idpath · string · requiredtrait_keypath · string · required
Request body
customer_account_idstringexpected_versionstringexpires_atstringsource_refstringtrait_keystringvalue_jsonstringvalue_typestring
cURL
curl --request PUT 'https://nexus-api.rainlib.com/v1/customers/{customer_account_id}/traits/{trait_key}' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"expected_version": "<value>",
"expires_at": "<value>",
"source_ref": "<value>",
"value_json": "<value>",
"value_type": "<value>"
}'Response contract
200 · OK
customer_account_idstringenvironment_idstringexpires_atstringidstringobserved_atstringsourcestringsource_refstringtrait_keystringupdated_atstringvalue_jsonstringvalue_typestringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.