POST
/
api
/
r2r
/
v3
/
conversations
/
{id}
/
messages
/
{message_id}
Update message in conversation
curl --request POST \
  --url https://api.intelligence.io.solutions/api/r2r/v3/conversations/{id}/messages/{message_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>",
  "metadata": [
    "<any>"
  ]
}'
{
  "results": {
    "id": "id",
    "message": {
      "role": "user",
      "content": "This is a test message.",
      "name": "name",
      "function_call": {
        "key": "value"
      },
      "tool_calls": [
        {
          "key": "value"
        }
      ],
      "tool_call_id": "tool_call_id",
      "metadata": {
        "key": "value"
      },
      "structured_content": [
        {
          "key": "value"
        }
      ],
      "image_url": "image_url"
    },
    "metadata": {
      "key": "value"
    }
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
integer
required

The unique identifier of the conversation

message_id
integer
required

The ID of the message to update

Body

application/json
content
string

The new content for the message

metadata
any[]

Additional metadata for the message metadata

Response

200

results
object