Update Conversation Message

Update conversation message

post
/v1/conversation/{conversationId}/message/{messageId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

conversationIdstring* Required

The ID of the conversation

messageIdstring* Required

The ID of the message

Request Body * Required

Request Body Schema: application/json

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

typestring

The type of the message

textstring

The updated text of the message

entitiesarray

Known entities

typestring

The entity type

beginnumber

Start offset

endnumber

End offset

textstring

The text value of the entity

replacementobject

beginnumber

Start offset

endnumber

End offset

textstring

The text value of the replacement

curl -X POST "https://api.chatbotkit.com/v1/conversation/{conversationId}/message/{messageId}/update" \

-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \

-H "Content-Type: application/json" \

--data-binary @- << EOF {
"name":"string",
"description":"string",
"meta":"object",
"type":"string",
"text":"string",
"entities":[
{
"type":"string",
"begin":"number",
"end":"number",
"text":"string",
"replacement":{
"begin":"number",
"end":"number",
"text":"string"
}
}
]
}
EOF
{
"id":"string"
}
The message was updated successfully