Skip to content
Docs

Update a customer

Update a customer's details in Proto from your own system.

Updates a customer’s details from your own system – for example, when they update their email address in your CRM. Only the fields you send change, and everything else stays as it is. Not sure how to send a request? See Make your first request.

Request

In the body, send only the fields that changed – every field is optional. In the address and the body, replace anything starting with YOUR_ with your own – YOUR_CUSTOMER_ID is your ID for the customer, the one you used when you created them:

FieldRequiredWhat it is
nameNoTheir name
emailNoTheir email address
phone_numberNoTheir phone number, with the country code
locationNoWhere they are
avatarNoA web address for their picture, starting with http:// or https://
external_customer_idNoTheir ID on a channel, such as their WhatsApp number. Shown as Channel ID.
add_tags_idsNoIDs of tags to add – v3 only. To tag by name instead, use Add tags to a customer.
remove_tags_idsNoIDs of tags to remove – v3 only
add_tag_groups_idsNoIDs of tag groups to add – v3 only
remove_tag_groups_idsNoIDs of tag groups to remove – v3 only
tag_idsNoIDs of every tag the customer should have – v2 only. Tags not in the list are removed. Leave it out to keep their tags as they are.
tag_group_idsNoIDs of every tag group the customer should have – v2 only. Works the same way as tag_ids.

To clear a field, send an empty string, such as "location": "" – null isn’t accepted. To set custom fields, use Set custom fields on a customer.

Response

Proto replies 200 OK with the whole customer, after the update:

{
  "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHD",
  "subcompany_id": "01HSWE652DMW6REJ1FB1135PRZ",
  "provided_unique_id": "CRM-48213",
  "external_customer_id": "2348031234567",
  "name": "Amara Okafor",
  "location": "Abuja, Nigeria",
  "email": "amara@okafor.example",
  "phone_number": "+2348031234567",
  "avatar": "https://example.com/amara.png",
  "tags": [
    { "id": "01HZ0QK3V7B2M8D4F6G9J1N5PR", "tag": "VIP", "color": "#16a34a" }
  ],
  "tag_groups": [
    { "id": "01HZ0QM8C2D4F6H8K1N3Q5S7UW", "name": "Plan", "color": "#2563eb", "tags": [] }
  ]
}
FieldWhat it is
idProto’s own ID for the customer, shown as Person ID
subcompany_idYour teamspace ID
provided_unique_idYour ID for the customer, shown as Unique ID
external_customer_idTheir ID on a channel, such as WhatsApp, shown as Channel ID
tagsAll their tags, each with its id, name (tag) and color as a hex code
tag_groupsAll their tag groups, each with its id, name, color and the tags in it

Errors

For errors any request can return, see If something goes wrong.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto