Update message
PUT/chats/:chat_id/messages/:message
Edits text (previous versions are kept), soft-deletes/restores, and updates extra/buttons. is_deleted: true nulls the text; setting a new text on a deleted message restores it.
Request
Responses
- 200
- 404
- 422
Message updated. message is included only when the client asks for the entity via Prefer: return=representation. (Legacy ?result=yes still works but is deprecated.)
Response Headers
Preference-Applied
Present (as return=representation) when the client requested the entity via Prefer: return=representation (or the deprecated ?result=yes flag) and the server honored it. Per RFC 7240.
A URL-bound resource (chat / user / message) was not found. Standard Laravel 404 body.
Validation failed.