AgentBots
Inbox API
Conversations API
Contact Labels
CSAT Survey Page
Account AgentBots
Agents
Canned Responses
Canned Response
Custom Attributes
Contacts
Automation Rule
Help Center
Conversations
Conversation Assignment
Conversation Labels
Inboxes
Integrations
Profile
Teams
Custom Filters
Contacts
Update Contact
Contacts
Update Contact
Update a contact belonging to the account using ID
PUT
/
api
/
v1
/
accounts
/
{account_id}
/
contacts
/
{id}
curl --request PUT \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/contacts/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"avatar_url": "<string>",
"identifier": "<string>",
"custom_attributes": {}
}'
{
"id": 123,
"payload": {
"contact": {
"email": "<string>",
"name": "<string>",
"phone_number": "<string>",
"thumbnail": "<string>",
"additional_attributes": {},
"custom_attributes": {
"attribute_key": "attribute_value",
"signed_up_at": "dd/mm/yyyy"
},
"contact_inboxes": [
{
"source_id": "<string>",
"inbox": {
"id": 123,
"name": "<string>",
"website_url": "<string>",
"channel_type": "<string>",
"avatar_url": "<string>",
"widget_color": "<string>",
"website_token": "<string>",
"enable_auto_assignment": true,
"web_widget_script": "<string>",
"welcome_title": "<string>",
"welcome_tagline": "<string>",
"greeting_enabled": true,
"greeting_message": "<string>"
}
}
]
}
}
}
Path Parameters
The numeric ID of the account
ID of the contact
Body
application/json
Response
204
application/json
Success
The response is of type object
.
curl --request PUT \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/contacts/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"avatar_url": "<string>",
"identifier": "<string>",
"custom_attributes": {}
}'
{
"id": 123,
"payload": {
"contact": {
"email": "<string>",
"name": "<string>",
"phone_number": "<string>",
"thumbnail": "<string>",
"additional_attributes": {},
"custom_attributes": {
"attribute_key": "attribute_value",
"signed_up_at": "dd/mm/yyyy"
},
"contact_inboxes": [
{
"source_id": "<string>",
"inbox": {
"id": 123,
"name": "<string>",
"website_url": "<string>",
"channel_type": "<string>",
"avatar_url": "<string>",
"widget_color": "<string>",
"website_token": "<string>",
"enable_auto_assignment": true,
"web_widget_script": "<string>",
"welcome_title": "<string>",
"welcome_tagline": "<string>",
"greeting_enabled": true,
"greeting_message": "<string>"
}
}
]
}
}
}