Lark icon

Lark

Consume Lark API

Actions118

消息 → 编辑消息

AI-generated

Summary

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" } ] ] } } }

Links

Discussion