PUT
/
agents
/
{agentId}
/
conversations
/
{conversationId}
/
messages
Overwrite Conversation Messages
curl --request PUT \
  --url https://api.chat-dash.com/v1/public/agents/{agentId}/conversations/{conversationId}/messages \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "sender": "user",
      "type": "text",
      "content": {
        "text": "<string>"
      },
      "metadata": {
        "model": "<string>",
        "total": 123
      },
      "createdAt": "<string>"
    }
  ]
}'
{
  "message": "Messages updated successfully"
}

Headers

Authorization
string
required

All requests to the ChatDash API must be validated with the agency API Key found on your agency profile

Path Parameters

agentId
string
required

The ID of the agent

conversationId
string
required

The ID of the conversation

Body

application/json
messages
(Text Message · object | Image Message · object | Button Message · object | Choice Message · object | Card Message · object | Carousel Message · object | Debug Message · object | File Message · object | Location Message · object | Transition Message · object | Extension Message · object | Path Message · object)[]

Response

OK

message
string
Example:

"Messages updated successfully"