Update
Update a Slack message
Update
Update a Slack message
yaml
type: "io.kestra.plugin.slack.app.chats.Update"Examples
yaml
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!"
yaml
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"
}
}
]
}