Reconcile Thread 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 matchmessages(required array): Replacement tail messagesexpected_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}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}