# Slack enable image via curl

**URL:** <https://community.grafana.com/t/slack-enable-image-via-curl/3521>\
**Category:** Grafana\
**Created:** [October 30, 2017, 8:23am UTC](https://community.grafana.com/t/slack-enable-image-via-curl/3521 "2017-10-30T08:23:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![blenderfox](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/blenderfox/32/1964_2.png) [@blenderfox](https://community.grafana.com/u/blenderfox)\
**Post date:** [October 30, 2017, 8:23am UTC](https://community.grafana.com/t/slack-enable-image-via-curl/3521/1 "2017-10-30T08:23:52Z")

</div>

I am trying to setup a slack notification channel via the API and can do so quite happily like this:

```
curl -sX POST -H "Accept: application/json" \
-H "Content-Type: application/json" \
-u admin:admin \
-d '
{
  "name":"Slack Alerts Channel",
  "type":"slack",
  "isDefault":false,
  "settings": {
    "url":"https://hooks.slack.com/services/XXXXXXX/YYYYYYY",
    "recipient":"#alerts_channel",
    "mention":"@on-call-team"
  }
}' http://localhost:4000/api/alert-notifications

```

But how do I enable the image upload tick? For example, isDefault will enable the “send on all alerts” tickbox, but what is the value to enable “Include image”?

---

<div class="post-metadata">

**Author:** ![bergquist](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/bergquist/32/1453_2.png) [@bergquist](https://community.grafana.com/u/bergquist)\
**Post date:** [October 30, 2017, 9:35am UTC](https://community.grafana.com/t/slack-enable-image-via-curl/3521/2 "2017-10-30T09:35:29Z")

</div>

settings.uploadImage should be set to true.

---

<div class="post-metadata">

**Author:** ![blenderfox](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/blenderfox/32/1964_2.png) [@blenderfox](https://community.grafana.com/u/blenderfox)\
**Post date:** [October 30, 2017, 9:47am UTC](https://community.grafana.com/t/slack-enable-image-via-curl/3521/3 "2017-10-30T09:47:00Z")

</div>

> [@bergquist](#):
>
> settings.uploadImage shoul

Perfect. Thank you very much! 🙂

---

<div class="post-metadata">

**Author:** ![daluu](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@daluu](https://community.grafana.com/u/daluu)\
**Post date:** [March 5, 2019, 9:04pm UTC](https://community.grafana.com/t/slack-enable-image-via-curl/3521/4 "2019-03-05T21:04:23Z")

</div>

Btw, where did you figure out the url parameter? The [API web doc](http://docs.grafana.org/alerting/notifications/#slack) doesn’t seem to officially mention it.

---

<div class="post-metadata">

**Author:** ![blenderfox](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/blenderfox/32/1964_2.png) [@blenderfox](https://community.grafana.com/u/blenderfox)\
**Post date:** [March 5, 2019, 9:16pm UTC](https://community.grafana.com/t/slack-enable-image-via-curl/3521/5 "2019-03-05T21:16:18Z")

</div>

I guessed. 😛
