Skip to content

Commit d29b59b

Browse files
committed
Updated readme with documentation and an example snippet for updating a top level message
1 parent 0f0c45e commit d29b59b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,31 @@ Post replies in threads with a special parameter `thread_id`. Including this par
106106
}
107107
```
108108

109+
## Update Top Level Messages
110+
111+
Update a top level message using the `thread_id` parameter. Can update the top of a threaded message or a standalone message. include the parameter `update_notification: true` to specify that this will be an update of an existing message. If the `thread_id` is missing or not found, the message will be posted as a new message instead.
112+
113+
```yaml
114+
- slack/notify:
115+
event: always
116+
update_notification: true
117+
custom: |
118+
{
119+
"blocks": [
120+
{
121+
"type": "section",
122+
"fields": [
123+
{
124+
"type": "plain_text",
125+
"text": "*This is a text notification*",
126+
"emoji": true
127+
}
128+
]
129+
}
130+
]
131+
}
132+
```
133+
109134
## Scheduled Message
110135

111136
Set the `scheduled_offset_seconds` special parameter to a number of seconds if you want to post a scheduled message. Example:

0 commit comments

Comments
 (0)