Update Message
rocketchat.update_message
ActionChat & messagingconnection required
Calls the Rocket.Chat API with the connection's credentials.
Replace the text of an existing message. Rocket.Chat has no partial edit here: the text you give becomes the whole message.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Rocket.Chat
- Secret shape
- the personal access token, or {"token": "…", "user_id": "…"}
- Config it needs
- base_url, user_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
room_id The room id (not its name) — use rocketchat.get_channel_info to resolve one. | string | Yes | — | — | — |
msg_id The message to edit. | string | Yes | — | — | — |
text The complete new message text. | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
message._id The message id. | string | 7aDSXtjMA3KPLxLjt |
message.rid The id of the room the message is in. | string | — |
message.msg The message text, as Rocket.Chat stored it. | string | — |
message.ts When the message was posted, as an ISO-8601 timestamp. | string | — |
message.u._id The id of the user the message was posted as. | string | — |
message.u.username The username the message was posted as. | string | — |
message._updatedAt When the message last changed, ISO-8601. | string | — |
success True — Rocket.Chat's own envelope flag. | boolean | — |
{
"message": {
"_id": "7aDSXtjMA3KPLxLjt",
"_updatedAt": "",
"msg": "",
"rid": "",
"ts": "",
"u": {
"_id": "",
"username": ""
}
},
"success": false
}See Update Message run in a workflow.
In a technical demo we add the Rocket.Chat connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.