Set Custom Attribute
PUThttps://public.leadpattern.com/customer/:waId
Set or update one custom attribute on a contact, addressed by its slug. The value must match the attribute's configured type (string, number or date).
- value accepts a string, number or date. List-type attributes cannot be set here today.
Headers
1 fieldAuthorizationstringrequired
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.
Path Parameters
1 fieldwaIdstringrequired
Contact waId (countryCode + phone).
Body Parameters
2 fieldsslugstringrequired
Custom attribute slug.
valuestringoptional
String, number or ISO date. Must match the attribute's type.
Responses
JSON Response
{
"type": "success",
"data": {
"id": "664abc123def456789012345",
"waId": "9195XXXXXXXX",
"customAttributes": [
{
"slug": "order_value",
"value": "4999"
}
]
}
}Sample Request Body
{
"slug": "order_value",
"value": "4999"
}
