Update message
Update a message
Update
POST
https://{{account_id}}.acquire.io/api/v1/crm/messenger/chat/message/{{messageId}}
Use this endpoint to modify a message in a Conversation. The messageId needs to be passed as a path parameter in the endpoint URL. messageId - the message ID. Use a webhook or GET request to find the message ID. If doing a GET request to Single Case, the message Id will be found in the object "messageSeen": { "1": 4334 } where 4334 corresponds to the messageId.
Path Parameters
id*
integer
The message's ID
Headers
Authorization*
string
Bearer {{API_KEY}}
Request Body
translateLangKey
string
Within the message object. ISO language code
message*
string
Within the message object. The message you intend to send.
type*
string
Within the message object. "message"
message*
object
The message object
{
"data": {
"id": 8288,
"channel": "chat",
"senderId": 1,
"senderType": "user",
"type": "message",
"message": "updating the sent message",
"dateCreated": "2021-03-30T16:04:11.000Z",
"dateUpdated": "2021-03-30T16:10:54.000Z",
"seen": "no",
"meta": {},
"case": {
"dateCreated": "2021-03-30T16:04:10.000Z",
"dateUpdated": "2021-03-30T16:05:46.000Z",
"id": 2069,
"contactId": 597759,
"closedBy": null,
"visitId": 1379,
"title": "#597759 has just started a chat",
"description": "Hey added from the api",
"channel": "chat",
"status": "active",
"closingState": "handled",
"dateQueue": "2021-03-30T16:04:10.000Z",
"datePending": "2021-03-30T16:04:10.000Z",
"dateActive": "2021-03-30T16:04:10.000Z",
"dateClosed": null,
"queueId": null,
"queueOrder": null,
"meta": {},
"parentId": 1875,
"userId": null,
"waitTime": 0,
"threadId": 1875
},
"sender": {
"roles": [],
"id": 1,
"name": "David Guetta",
"firstName": "David Guetta",
"lastName": "",
"photo": "",
"email": "[email protected]",
"clientId": "",
"parentId": 0,
"type": "user",
"accessLevel": null
},
"caseId": 2069,
"threadId": 1875
}
}
Body(raw)
{
"channel": "chat",
"message": {
"type": "message",
"message": "Hey added from the api",
"translateLangKey": "en"
},
"caseId": 9
}
Last updated