Skip to content
Reference/Contacts/Set Custom Attribute

Set Custom Attribute

PUThttps://public.leadpattern.com/customer/:waId
application/json60 req/min

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 field
Authorizationstring
required
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.

Path Parameters

1 field
waIdstring
required
Contact waId (countryCode + phone).

Body Parameters

2 fields
slugstring
required
Custom attribute slug.
valuestring
optional
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"
}