PUT
/
v2
/
agent
/
threads
/
{thread_id}
/
history
Replace persisted assistant thread messages
curl --request PUT \
  --url https://api-v2.watchcollect.com/v2/agent/threads/{thread_id}/history \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {}
  ]
}
'
{
  "messages": [
    {}
  ],
  "headId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

thread_id
string<uuid>
required

Body

application/json

Assistant UI exported thread repository. The messages array stores assistant-ui message repository items and may include forward-compatible library-owned fields.

messages
object[]
required
headId
string | null

Response

Stored Assistant UI thread history.

Assistant UI exported thread repository. The messages array stores assistant-ui message repository items and may include forward-compatible library-owned fields.

messages
object[]
required
headId
string | null