v54

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-03397565628.8 KB
Chats

Edit chat message

Experimental: this endpoint is subject to change.

patch/api/experimental/chats/{chat}/messages/{message}

Path parameters

chatstring uuid required

Chat ID

messageinteger required

Message ID

Request body

model_config_idstring uuid

ModelConfigID, when set, overrides the model used for the replacement user message and the assistant turn that follows. When nil the original message's model is preserved.

reasoning_effortstring

Response

OK

deleted_message_idsinteger[]

DeletedMessageIDs holds the IDs of previously visible messages the edit removed, including stale hook notices from the edited turn. Clients should drop them from local caches.

warningsstring[]