
Slack Update
CertifiedUpdate a Slack message
Slack Update
Update a Slack message
Replaces text, blocks, or attachments of an existing message by channel and timestamp. Requires chat: write.
type: io.kestra.plugin.slack.app.chats.UpdateExamples
Update a message
id: slack_update_message
namespace: company.team
tasks:
- id: post_message
type: io.kestra.plugin.slack.app.chats.Post
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#general"
messageText: "Processing..."
- id: update_message
type: io.kestra.plugin.slack.app.chats.Update
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#general"
timestamp: "{{ outputs.post_message.timestamp }}"
messageText: "Processing complete!"
Update with custom blocks
id: slack_update_custom
namespace: company.team
tasks:
- id: update_message
type: io.kestra.plugin.slack.app.chats.Update
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#general"
timestamp: "{{ outputs.previous_task.timestamp }}"
payload: |
{
"text": "Updated status",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Status:* :white_check_mark: Completed"
}
}
]
}
Properties
timestamp *Requiredstring
Thread timestamp to reply to
Slack ts value for replying in a thread; must belong to the same channel.
token *Requiredstring
Slack token
channel string
Channel to send message
Channel ID or name; can also be set inside the payload.
iconEmoji string
Message icon emoji
Emoji code (e.g., : wave: ) that overrides iconUrl.
iconUrl string
Message icon URL
HTTPS image used as icon when iconEmoji is not provided.
messageText string
Message Text or JSON String
The message content as a raw string. It can be plain text with markdown, or a JSON object. If not a valid JSON object, it is automatically wrapped in {"text": "..."}. This property is ignored if the payload property is set.
payload string
Slack message payload
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
username string
Display username
Overrides the bot's default display name for this message.
Outputs
timestamp *Requiredstring
Timestamp of updated message