Update an existing message content. One of the following scopes is required for using this action:
  • Read and send messages in private and group chats
  • Send messages as an app
  • Update message
External DocumentationTo learn more, visit the Lark documentation.

Parameters

ParameterDescription
Message IDThe ID of the message to update.

This value can be obtained from previous message responses or by using the List Messages action.
Message TypeThe type of the updated message content.
Updated ContentThe new content for the message. The format depends on the message type.

For example, to update to a simple text message, use:
{
"text": "Updated message content"
}

For the full list of message formats, refer to Lark API documentation.

Example Output

{
	"code": 0,
	"msg": "success",
	"data": {
		"message_id": "om_dc13264520392913993dd051dba21dcf",
		"root_id": "om_40eb06e7b84dc71c03e009ad3c754195",
		"parent_id": "om_d4be107c616aed9c1da8ed8068570a9f",
		"thread_id": "omt_d4be107c616a",
		"msg_type": "card",
		"create_time": "1609296809",
		"update_time": "1609336806",
		"deleted": false,
		"updated": true,
		"chat_id": "oc_5ad11d72b830411d72b836c20",
		"sender": {
			"id": "cli_9f427eec54ae901b",
			"id_type": "app_id",
			"sender_type": "App",
			"tenant_key": "736588c9260f175e"
		},
		"body": {
			"content": "{\"text\":\"@_user_1 test content\"}"
		},
		"mentions": [
			{
				"key": "@_user_1",
				"id": "ou_155184d1e73cbfb8973e5a9e698e74f2",
				"id_type": "open_id",
				"name": "Tom",
				"tenant_key": "736588c9260f175e"
			}
		],
		"upper_message_id": "om_40eb06e7b84dc71c03e00ida3c754892"
	}
}

Workflow Library Example

Update Message with Lark and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop