Skip to content

Commit a8b0edd

Browse files
PROGX-1068: Update documentation with category data in product grid actions (#1104)
1 parent f0af124 commit a8b0edd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

content/extensions/types.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ Here is a diagram illustrating the workflow:
256256

257257
Data sent within the POST body, formatted in JSON, contain:
258258
- A `data` object with different fields depending on the [position](#position).
259-
- A `context` object containing the configured `locale` and `channel`.
259+
- A `context` object containing:
260+
- the configured `locale`,
261+
- the configured `channel`,
262+
- the configured `category` (only available for product grid actions).
260263
- A `user` object containing the `uuid`, `username` and `groups` of the connected user.
261264
- A `timestamp` that can be used with a [secret](#secret) to help you to protect your server against [replay attacks](https://en.wikipedia.org/wiki/Replay_attack).
262265

@@ -306,7 +309,8 @@ Examples :
306309
},
307310
"context": {
308311
"locale": "en_US",
309-
"channel": "ecommerce"
312+
"channel": "ecommerce",
313+
"category": "master_men_blazers_deals"
310314
},
311315
"user": {
312316
"uuid": "e05cc457-b8ac-43b1-baa7-c4c112091ad8",
@@ -351,4 +355,4 @@ If the URL begins with a placeholder, we won't verify its validity. The link mig
351355
:::
352356

353357
::: panel-link UI extensions available positions [Next](/extensions/positions.html)
354-
:::
358+
:::

0 commit comments

Comments
 (0)