Skip to content

Commit 982d990

Browse files
committed
🩹 Fix asset record attribute filter
1 parent e3fdc87 commit 982d990

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/rest-api/filter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,12 +1666,12 @@ Supported types and operators:
16661666
- boolean: `=`, `EMPTY`, `NOT EMPTY`
16671667
- date: `=`, `<`, `>`, `BETWEEN`, `NOT BETWEEN`, `EMPTY`, `NOT EMPTY`
16681668
- option/option_collection: `IN`, `EMPTY`, `NOT EMPTY`
1669-
- record: `=`, `IN`, `EMPTY`
1669+
- record: `IN`, `EMPTY`, `NOT EMPTY`
16701670

16711671
Notes:
16721672
- Filtering on attribute types `media_file` and `media_link` is not supported. The API will return a 422 error.
16731673
- Attribute identifiers must match the regex `^[a-zA-Z0-9_]+$`.
1674-
- For `record` attributes, use operator `=` with value `true` to express non-empty (and `false` for empty). There is no `NOT EMPTY` operator for record.
1674+
- For `record` attributes, the value used in the filter is the code of the linked reference entity record.
16751675

16761676
#### Examples
16771677

0 commit comments

Comments
 (0)