# Complete example for updating an interactive ephemeral message?

**URL:** <https://forum.mattermost.com/t/complete-example-for-updating-an-interactive-ephemeral-message/7364>\
**Category:** Troubleshooting\
**Created:** [May 26, 2019, 3:56am UTC](https://forum.mattermost.com/t/complete-example-for-updating-an-interactive-ephemeral-message/7364 "2019-05-26T03:56:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjreed](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pjreed/32/2931_2.png) [@pjreed](https://forum.mattermost.com/u/pjreed)\
**Post date:** [May 26, 2019, 3:56am UTC](https://forum.mattermost.com/t/complete-example-for-updating-an-interactive-ephemeral-message/7364/1 "2019-05-26T03:56:44Z")

</div>

I’m trying to make a slash command that posts an ephemeral message with interactive buttons that result in updating the original message. The documentation says this should be possible: [https://docs.mattermost.com/developer/interactive-messages.html](https://docs.mattermost.com/developer/interactive-messages.html)

In specific, it says:

> The integration can respond with an update to the original post, or with an ephemeral message:
> 
> ```
> {
> "update": {
> "message": "Updated!"
> },
> "ephemeral_text": "You updated the post!"
> }
> 
> ```

My problem is that this seems to just be a snippet of a valid response. I can post the original message, I get the request, and no matter how I respond to the request, nothing happens. I’ve tried responding with the exact block above and multiple variations on it, and it does nothing. The documentation links to the Matterpoll plugin as an example, which isn’t really useful to me because I’m not using Go, I’m just writing a CGI script that returns a JSON-formatted response.

Has anybody gotten this working? If so, could you share example JSON requests/responses that produce the desired behavior? I really just need to know what an action response is supposed to look like and what the valid options are.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 27, 2019, 1:16pm UTC](https://forum.mattermost.com/t/complete-example-for-updating-an-interactive-ephemeral-message/7364/2 "2019-05-27T13:16:07Z")

</div>

@Hanzei Pinging you in case you have an answer for this.

---

<div class="post-metadata">

**Author:** ![Hanzei](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/hanzei/32/2139_2.png) [@Hanzei](https://forum.mattermost.com/u/Hanzei)\
**Post date:** [May 27, 2019, 1:21pm UTC](https://forum.mattermost.com/t/complete-example-for-updating-an-interactive-ephemeral-message/7364/3 "2019-05-27T13:21:34Z")

</div>

Hey @pjreed,

Ephemeral messages can’t be updated via `update`. This is only achievable via plugins. See [https://docs.mattermost.com/developer/interactive-messages.html#are-message-buttons-and-menus-supported-in-ephemeral-messages](https://docs.mattermost.com/developer/interactive-messages.html#are-message-buttons-and-menus-supported-in-ephemeral-messages)

But posting an ephemeral message after clicking on a button in the original ephemeral message should still work.

What server version are you using?

---

<div class="post-metadata">

**Author:** ![pjreed](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pjreed/32/2931_2.png) [@pjreed](https://forum.mattermost.com/u/pjreed)\
**Post date:** [May 28, 2019, 2:38pm UTC](https://forum.mattermost.com/t/complete-example-for-updating-an-interactive-ephemeral-message/7364/4 "2019-05-28T14:38:35Z")

</div>

I see, that makes sense. Thanks. We just upgraded to 5.11.

I was hoping to be able to make a slash command similar to the giphy plugin for Slack that posts an ephemeral message that has “Send”, “Shuffle”, and “Cancel” buttons that can make the ephemeral message in\_channel, replace the image, or remove it; is that not possible without writing a plugin?

---

<div class="post-metadata">

**Author:** ![Hanzei](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/hanzei/32/2139_2.png) [@Hanzei](https://forum.mattermost.com/u/Hanzei)\
**Post date:** [May 29, 2019, 4:04pm UTC](https://forum.mattermost.com/t/complete-example-for-updating-an-interactive-ephemeral-message/7364/5 "2019-05-29T16:04:01Z")

</div>

> is that not possible without writing a plugin?

Yes, this is currently no possible without writing a plugin.
