Skip to main content
PATCH
TypeScript
Include metadata in the request body to record why this update was made. It is optional, but recommended to make audit trail easier to understand.

Authorizations

Authorization
string
header
required

API key from your UltraContext dashboard

Path Parameters

id
string
required

Context ID (ctx_...)

Body

application/json

Single update, array of updates, or object with updates array and metadata for audit trail.

Include id OR index (not both) and any fields to merge into the message

id
string

Message ID to update (msg_...). Either id or index required, not both.

index
integer

Message index (0 = first, -1 = last). Either id or index required.

Response

Messages updated (new version created)

data
object[]
version
integer

Current version number after the write