Update customer

Updates fields on the customer identified by customer_token. Pass null to clear a field.

Path Parameters
  • customer_token
    Type: string
    required

    Token that uniquely identifies the customer in this channel.

Body·
required
application/json

Any subset of customer fields. Pass null to clear a value.

  • country
    Type: string | null
  • email
    Type: string | nullFormat: email
  • name
    Type: string | null
  • phone
    Type: string | null
  • postal_code
    Type: string | null
Responses
  • application/json
Request Example for put/customers/{customer_token}/
curl 'https://chat.landbot.io/v1/customers/{customer_token}/' \
  --request PUT \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token YOUR_CHANNEL_TOKEN' \
  --data '{
  "postal_code": "46021",
  "phone": null,
  "country": "ES"
}'
{
  "success": true,
  "customer": {
    "id": 42,
    "name": "Sam",
    "phone": null,
    "email": "sam@helloumi.com",
    "postal_code": "46021",
    "country": "GB",
    "token": "SDFRL4TOMFTEWERY262NF"
  }
}