curl --request POST \
--url https://api.wapikit.com/api/conversation/{id} \
--header 'Content-Type: application/json' \
--data '{
"status": "Active"
}'
{
"conversation": {
"contact": {
"uniqueId": "<string>",
"name": "<string>",
"phone": "<string>",
"attributes": {},
"createdAt": "2023-11-07T05:31:56Z",
"status": "Active"
},
"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",
"numberOfUnreadMessages": 123,
"totalMessages": 123,
"status": "Active",
"assignedTo": {
"uniqueId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"accessLevel": "Owner",
"name": "<string>",
"email": "<string>",
"roles": [
{
"uniqueId": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"Get:OrganizationMember"
]
}
]
},
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
]
}
}
update a conversation
curl --request POST \
--url https://api.wapikit.com/api/conversation/{id} \
--header 'Content-Type: application/json' \
--data '{
"status": "Active"
}'
{
"conversation": {
"contact": {
"uniqueId": "<string>",
"name": "<string>",
"phone": "<string>",
"attributes": {},
"createdAt": "2023-11-07T05:31:56Z",
"status": "Active"
},
"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",
"numberOfUnreadMessages": 123,
"totalMessages": 123,
"status": "Active",
"assignedTo": {
"uniqueId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"accessLevel": "Owner",
"name": "<string>",
"email": "<string>",
"roles": [
{
"uniqueId": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"Get:OrganizationMember"
]
}
]
},
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
]
}
}
The id value of the conversation you want to update.
updated conversation info
The body is of type object
.
conversation object
The response is of type object
.
Was this page helpful?