update_message
Edit a posted message by providing its ID and new content; supports rich attachments with colors and fields.
Instructions
Edit an existing message.
Can only edit your own messages (unless admin). The message will show as edited. Original content is replaced; edit history is not preserved.
Attachment examples:
Status alert: {"color": "danger", "title": "Build Failed", "text": "Tests failed on main"}
With fields: {"title": "Ticket", "fields": [{"title": "Status", "value": "Open", "short": true}]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | New message content | |
| post_id | Yes | 26-character post/message identifier (e.g., 'o5w8h47pdfbzjc4d8w7dhnhren') | |
| attachments | No | Rich message attachments with colors, fields, images |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique post identifier | |
| type | Yes | Post type (empty for regular posts) | |
| edit_at | Yes | Last edit timestamp | |
| message | Yes | Post content (supports Markdown) | |
| root_id | Yes | Root post ID if in thread | |
| user_id | Yes | Author user identifier | |
| file_ids | Yes | Attached file IDs | |
| hashtags | Yes | Space-separated hashtags | |
| create_at | Yes | Creation timestamp in milliseconds | |
| delete_at | Yes | Deletion timestamp (0 if not deleted) | |
| is_pinned | Yes | Whether post is pinned | |
| update_at | Yes | Last update timestamp in milliseconds | |
| channel_id | Yes | Channel where posted | |
| original_id | Yes | Original post ID if edited | |
| pending_post_id | Yes | Client-side pending ID |