Updates the metadata of a message.

PATCH

Updates the metadata of a message.

Path parameters

sessionIdstringRequired

The ID of the session.

messageUUIDstringRequired

The UUID of the message.

Request

This endpoint expects an object.
metadatamap from strings to anyRequired

The metadata to update

Response

This endpoint returns an object.
contentstringOptional

The content of the message.

created_atstringOptional

The timestamp of when the message was created.

metadatamap from strings to anyOptional

The metadata associated with the message.

rolestringOptional

The role of the sender of the message (e.g., “user”, “assistant”).

role_typeenumOptional

The type of the role (e.g., “user”, “system”).

token_countintegerOptional

The number of tokens in the message.

updated_atstringOptional

The timestamp of when the message was last updated.

uuidstringOptional

The unique identifier of the message.

Errors