You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/extensions/types.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,10 @@ Here is a diagram illustrating the workflow:
256
256
257
257
Data sent within the POST body, formatted in JSON, contain:
258
258
- 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).
260
263
- A `user` object containing the `uuid`, `username` and `groups` of the connected user.
261
264
- 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).
262
265
@@ -306,7 +309,8 @@ Examples :
306
309
},
307
310
"context": {
308
311
"locale": "en_US",
309
-
"channel": "ecommerce"
312
+
"channel": "ecommerce",
313
+
"category": "master_men_blazers_deals"
310
314
},
311
315
"user": {
312
316
"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
351
355
:::
352
356
353
357
::: panel-link UI extensions available positions [Next](/extensions/positions.html)
0 commit comments