PUT
/
v1
/
chat
/
messages
/
{id}
curl --request PUT \
  --url https://api.botpress.cloud/v1/chat/messages/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "tags": {},
  "payload": {}
}'
{
  "message": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "type": "<string>",
    "payload": {},
    "direction": "incoming",
    "userId": "<string>",
    "conversationId": "<string>",
    "tags": {}
  }
}

Path Parameters

id
string
required

Message id

Body

application/json
Message data
tags
object
required

Set of Tags that you can attach to a Conversation. The set of Tags available on a Conversation is restricted by the list of Tags defined previously by the Bot. Individual keys can be unset by posting an empty value to them.

payload
object

Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location

Response

200
application/json
Message information
message
object
required

The Message object represents a message in a Conversation for a specific User.