Actions118
- 消息 Actions
- 多维表格 Actions
- 文档 Actions
- 日历 Actions
- 表格 Actions
- 云空间 Actions
- 通讯录 Actions
消息 → 编辑消息
AI-generatedSummary
Updates an existing Lark message using the specified message ID and content type.
Inputs
- authentication (required) — Authentication method to use. Options are Tenant Access Token (larkApi) or User Access Token (larkOAuth2Api).
- message_id (required) — The ID of the message to edit.
- edit_msg_type (required) — The type of message to edit. Options are Rich Text (post) or Text (text).
- content (required) — The new content for the message in JSON format, formatted according to the selected message type (post or text).
Output shape
no body — success/failure only
Returns an empty body on success. Returns an error on failure (e.g., invalid message ID, unauthorized access).
Examples
Example 1: Update a rich text post in a group chat.
Authentication: larkApi, Message ID: {{ $.message_id }}, Type: post, Content: { "post": { "zh_cn": { "title": "Updated Title", "content": [ [ { "tag": "text", "text": "Updated content here" } ] ] } } }