summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-29 11:31:54 -0700
committerCorey Hulen <corey@hulen.com>2015-09-29 11:31:54 -0700
commite937beb51bc2166e0cb6658d5523aa584d2dd807 (patch)
treea65948450736885eef3ea9a3d00ac4e4843a1a96 /doc
parentadfe129fcc5b2d19eb25ffb4da9709006272a964 (diff)
parentddf89518284649056c5884b209026ec1047e724f (diff)
downloadchat-e937beb51bc2166e0cb6658d5523aa584d2dd807.tar.gz
chat-e937beb51bc2166e0cb6658d5523aa584d2dd807.tar.bz2
chat-e937beb51bc2166e0cb6658d5523aa584d2dd807.zip
Merge pull request #848 from mattermost/plt-488
PLT-488 Update incoming webhooks to hide DMs and accept direct JSON payloads.
Diffstat (limited to 'doc')
-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."}