Update customer
Updates fields on the customer identified by customer_token. Pass null to clear a field.
Path Parameters
- Type: stringcustomer
_token requiredToken that uniquely identifies the customer in this channel.
Body·
required
application/json
Any subset of customer fields. Pass null to clear a value.
- Type: string | nullcountry
- Type: string | nullFormat: emailemail
- Type: string | nullname
- Type: string | nullphone
- Type: string | nullpostal
_code
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"
}
}