Acontext
SessionSession_idMessagesMessage_idMeta

Patch message metadata

PATCH
/session/{session_id}/messages/{message_id}/meta

Update message metadata using patch semantics. Only updates keys present in the request. Pass null as value to delete a key.

Authorization

BearerAuth
Authorization<token>

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

In: header

Path Parameters

session_id*string

Session ID

Formatuuid
message_id*string

Message ID

Formatuuid

Request Body

application/json

PatchMessageMeta payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://loading/api/v1/session/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/meta" \  -H "Content-Type: application/json" \  -d '{    "meta": {}  }'
{
  "code": 0,
  "error": "string",
  "msg": "string",
  "data": {
    "meta": {}
  }
}
{
  "code": 0,
  "error": "string",
  "msg": "string"
}
{
  "code": 0,
  "error": "string",
  "msg": "string"
}