diff --git a/docs/publish.md b/docs/publish.md index 4c829fe5..76d9010c 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -821,11 +821,13 @@ Here's an example of what that a notification with actions can look like:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-To define the user actions, you can either pass the `actions` field as part of the JSON body (if you're -[publishing via JSON](#publish-as-json)), or use the `X-Actions` header (or any of its aliases: `Actions`, `Action`). +You can set up to three user actions in your notifications, using either of the following methods: -Using the `X-Actions` header and the **simple format** (details see below), you can create the above notification like -this. This format is much **easier to write, but less powerful**: +* In the `X-Actions` header, using the **simple format** +* As a **JSON array** in the `actions` key, when [publishing as JSON](#publish-as-json) + +Using the `X-Actions` header (or any of its aliases: `Actions`, `Action`) and the **simple format** (details see below), you +can create the above notification like this. === "Command line (curl)" ``` @@ -899,40 +901,29 @@ this. This format is much **easier to write, but less powerful**: ] ])); ``` - -The `X-Actions` header (including above-mentioned aliases) supports the following formats: + +Here's the generic definition of the simple format: === "Simple format (long)" ``` - X-Actions: action=, label=