Slack enable image via curl

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”?

settings.uploadImage should be set to true.

Perfect. Thank you very much! :slight_smile:

Btw, where did you figure out the url parameter? The API web doc doesn’t seem to officially mention it.

I guessed. :stuck_out_tongue: