Skip to content

Commit 4f93c8b

Browse files
Merge pull request #665 from akeneo/CPM-754
CPM-754: Add product uuid filter
2 parents 757c54a + 6cfdc59 commit 4f93c8b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

content/rest-api/filter.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ You can even combine several filters on the same product properties. The example
3636
/api/rest/v1/products-uuid?search={"categories":[{"operator":"IN","value":["winter_collection"]},{"operator":"NOT IN","value":["accessories"]}]}
3737
```
3838

39+
### On their uuid
40+
41+
::: availability versions=SaaS editions=CE,EE
42+
43+
To filter products on their uuid, use the `uuid` property.
44+
Here are the allowed operators you can use to filter on the uuid as well as the corresponding type of value expected in the `search` query parameter.
45+
46+
| Allowed operators | Allowed value type |
47+
| ----------------- |---------------------------------|
48+
| IN, NOT IN | list of strings (product uuids) |
49+
50+
#### Example
51+
52+
```
53+
/api/rest/v1/products-uuid?search={"uuid":[{"operator":"IN","value":["8945388d-cf5b-49af-8799-05d1ed6e296f", "941fe892-99dd-440f-b2a9-8eccb94248f0"]}]}
54+
```
55+
3956
### On their categories
4057

4158
::: availability versions=1.7,2.x,3.x,4.0,5.0,6.0,SaaS editions=CE,EE

0 commit comments

Comments
 (0)