Skip to main content
Nowledge MemNowledge Mem

Reconcile Thread Tail

POST
/threads/{thread_id}/reconcile-tail

Safely replace the tail of a thread without changing append semantics.

Optional request fields:

  • matched_count (required int): Number of leading messages that still match
  • messages (required array): Replacement tail messages
  • expected_tail_ids (optional string[]): Current remote tail message IDs for optimistic concurrency

Path Parameters

thread_id*Thread Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/threads/string/reconcile-tail" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "thread_id": "string",  "messages_replaced": 0,  "messages_added": 0,  "total_messages": 0}