--- title: "Update Message (Realtime)" slug: "update-message-realtime" updated: 2026-05-18T14:33:08Z published: 2026-05-18T14:33:08Z canonical: "developer.rocket.chat/update-message-realtime" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Update Message (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) Update a message. | Method | Requires Auth | Permission | Settings | | --- | --- | --- | --- | | `updateMessage` | Yes | `edit-message` | You need to consider two essential settings when deleting messages: - `Message_AllowEditing`: It is represented as a boolean (true/false), which determines whether message editing is permitted. - `Message_AllowDeleting_BlockDeleteInMinutes`: It is represented as an integer and offers more control over the edit functionality. When set to `0`, editing is allowed without any time restrictions. However, if the value is greater than `0`, there is a time-based restriction where editing is blocked/disabled after the specified duration has passed. | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `textMessageObject` | ```json { "_id": "298gMs93982Le9A7pZjo2D2iB", "rid": "64a1f373376181965ab77f54", "msg": "Whats 4*!" } ``` | Required | The [Message Object](/v1/docs/message) containing only the updated `msg`. | ## Example call ```json {    "msg": "method",    "method": "updateMessage",    "id": "42",    "params": [{        "_id": "298gMs93982Le9A7pZjo2D2iB",        "rid": "64a1f373376181965ab77f54",        "msg": "Whats 4*!" }]         } ``` ## Example response ```json {    "msg": "result",    "id": "42" } ```