Skip to content

Commit 1734460

Browse files
committed
Update examples
1 parent a7421bc commit 1734460

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

content/event-platform/available-filters.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Filters are defined when configuring [your subscription](/event-platform/concept
1515
Use this filter to receive only events triggered by a specific user.
1616

1717
- **Syntax**
18-
`user=user_identifier`
18+
`user="user_identifier"`
1919
- **Parameters**
2020
- `user_identifier`: The UUID of the user who authored the event.
2121

2222
- **Example**
23-
`user=57616f6f-1a4d-490e-bc23-c5877d2b30d9`
23+
`user="57616f6f-1a4d-490e-bc23-c5877d2b30d9"`
2424

2525
---
2626

@@ -29,26 +29,26 @@ Use this filter to receive only events triggered by a specific user.
2929
Use this filter to receive only delta events where a specific attribute was updated.
3030

3131
- **Syntax**
32-
`attribute=attribute_code`
32+
`attribute="attribute_code"`
3333
- **Parameters**
3434
- `attribute_code`: The code of the attribute you want to track.
3535

3636
- **Example**
37-
`attribute=short_description`
37+
`attribute="short_description"`
3838

3939
---
4040

4141
## `scope`
4242

43-
Use this filter to receive only delta events related to a specific scope.
43+
Use this filter to receive only delta events related to a specific channel.
4444

4545
- **Syntax**
46-
`scope=scope_code`
46+
`scope="code"` or `channel="code"`
4747
- **Parameters**
48-
- `scope_code`: The scope code of the updated data.
48+
- `code`: The scope / channel code of the updated data.
4949

5050
- **Example**
51-
`scope=my_scope`
51+
`scope="my_scope"`
5252

5353
---
5454

@@ -57,11 +57,11 @@ Use this filter to receive only delta events related to a specific scope.
5757
Use this filter to receive only delta events for a specific locale.
5858

5959
- **Syntax**
60-
`locale=locale_code`
60+
`locale="locale_code"`
6161
- **Parameters**
6262
- `locale_code`: The locale code of the updated data.
6363

6464
- **Example**
65-
`locale=en_US`
65+
`locale="en_US"`
6666

6767
---

content/event-platform/concepts.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,6 @@ We currently use a static IP address provided by Google Cloud: `34.140.80.128`
177177

178178
When configuring a subscription, you can optionally define a **filter** to receive **only the events that match specific criteria**.
179179

180-
Here's the available filters you can use:
181-
- user
182-
183-
The following filters will be available soon:
184-
- attribute
185-
- scope
186-
- locale
187-
188180
You can find the list of currently available filters and the correct syntax to use [here](/event-platform/available-filters.html).
189181

190182
### Example
@@ -202,7 +194,7 @@ You can configure your subscription with the following filter:
202194
"config": {
203195
"url": "https://your_webhook_url",
204196
}
205-
"filter": "user=ea0fe94f-417e-4078-a40b-38645ba90ebe"
197+
"filter": "user=\"ea0fe94f-417e-4078-a40b-38645ba90ebe\""
206198
}
207199
```
208200

0 commit comments

Comments
 (0)