curl --request POST \
--url https://api.wapikit.com/api/contacts/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"status": "Active",
"phone": "<string>",
"attributes": {},
"lists": [
"<string>"
]
}'
{
"contact": {
"uniqueId": "<string>",
"name": "<string>",
"phone": "<string>",
"attributes": {},
"createdAt": "2023-11-07T05:31:56Z",
"lists": [
{
"name": "<string>",
"description": "<string>",
"numberOfContacts": 123,
"numberOfCampaignsSent": 123,
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
],
"uniqueId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
],
"conversations": [
{
"uniqueId": "<string>",
"contactId": "<string>",
"campaignId": "<string>",
"organizationId": "<string>",
"initiatedBy": "Contact",
"messages": [
{
"uniqueId": "<string>",
"conversationId": "<string>",
"direction": "InBound",
"status": "Read",
"messageType": "Text",
"createdAt": "2023-11-07T05:31:56Z",
"replyToMessageId": "<string>",
"whatsAppMessageId": "<string>",
"messageData": {
"text": "<string>"
}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"status": "Active"
}
],
"status": "Active"
}
}
modify contact data
curl --request POST \
--url https://api.wapikit.com/api/contacts/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"status": "Active",
"phone": "<string>",
"attributes": {},
"lists": [
"<string>"
]
}'
{
"contact": {
"uniqueId": "<string>",
"name": "<string>",
"phone": "<string>",
"attributes": {},
"createdAt": "2023-11-07T05:31:56Z",
"lists": [
{
"name": "<string>",
"description": "<string>",
"numberOfContacts": 123,
"numberOfCampaignsSent": 123,
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
],
"uniqueId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
],
"conversations": [
{
"uniqueId": "<string>",
"contactId": "<string>",
"campaignId": "<string>",
"organizationId": "<string>",
"initiatedBy": "Contact",
"messages": [
{
"uniqueId": "<string>",
"conversationId": "<string>",
"direction": "InBound",
"status": "Read",
"messageType": "Text",
"createdAt": "2023-11-07T05:31:56Z",
"replyToMessageId": "<string>",
"whatsAppMessageId": "<string>",
"messageData": {
"text": "<string>"
}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"status": "Active"
}
],
"status": "Active"
}
}
The id of contact to update
updated contact info
The body is of type object
.
returns updated contact.
The response is of type object
.
Was this page helpful?