飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions112

消息 → 编辑消息

AI-generated

Summary

Updates an existing Feishu message by ID, supporting text or rich post formats.

Inputs

  • authentication (required) — Credential type: 'feishuNodeOauth2Api' for user-level, or 'feishuNodeCredentialsApi' for app-level.
  • message_id (required) — The unique ID of the message to edit.
  • msg_type (required) — Message type: 'text' for plain text, or 'post' for rich text.
  • text_content (required) — Plain text content for message type 'text'. Supports @user and @all.
  • post_content (required) — Rich text content for message type 'post' in JSON format. Default includes a title and content array.
  • options — Optional settings: 'batching' to control concurrency (batchSize, batchInterval) and 'timeout' to set request timeout in milliseconds.

Output shape

Success/error envelope containing the updated message details.

Returns the full API response. If an error occurs, an 'error' field is included in the returned data. Supports batch processing via Options.

Examples

Example 1: Edit a plain text message

msg_type = text, text_content = 'Updated status'

Example 2: Edit a rich post message

msg_type = post, post_content = JSON body with title and content

Example 3: Edit with batching for high volume

options.batching.batchSize = 50, options.batching.batchInterval = 1000

Links

Discussion