summaryrefslogtreecommitdiffstats
path: root/doc/integrations
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-09-29 08:38:26 -0400
committerJoramWilander <jwawilander@gmail.com>2015-09-29 08:38:26 -0400
commita9f5918a9df9fca2fcab97e2c7e623187755ae78 (patch)
treec1af1e0471d22fdde9288bdd0203fc6351046c9a /doc/integrations
parent56e31fe4966008d64fd7e57a0efcb0f80b5b2424 (diff)
downloadchat-a9f5918a9df9fca2fcab97e2c7e623187755ae78.tar.gz
chat-a9f5918a9df9fca2fcab97e2c7e623187755ae78.tar.bz2
chat-a9f5918a9df9fca2fcab97e2c7e623187755ae78.zip
Update incoming webhooks to hide DMs and accept direct JSON payloads.
Diffstat (limited to 'doc/integrations')
-rw-r--r--doc/integrations/webhook/incoming.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/integrations/webhook/incoming.md b/doc/integrations/webhook/incoming.md
index a48448cc5..e391cba92 100644
--- a/doc/integrations/webhook/incoming.md
+++ b/doc/integrations/webhook/incoming.md
@@ -20,6 +20,11 @@ You can send the message by including a JSON string as the `payload` parameter i
payload={"text": "Hello, this is some text."}
```
+In addition, if `Content-Type` is specified as `application/json` in the headers of the HTTP request then the body of the request can be direct JSON.
+```
+{"text": "Hello, this is some text."}
+```
+
It is also possible to post richly formatted messages using [Markdown](../../help/enduser/markdown.md).
```
payload={"text": "# A Header\nThe _text_ below **the** header."}