Skip to content

Commit d84429c

Browse files
committed
Add docs for the new between operator
1 parent e89ebad commit d84429c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/api/pagination-and-filters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ You can also pass modifiers to modify the filters. The modifiers must be in the
4444
| gte | `>=` | `attribute >= value` |
4545
| beginsWith | string begins with | attribute.beginsWith(value) |
4646
| contains | string or array contains | attribute.contains(value) |
47+
| between | range | attribute between value1 and value2 |
4748

4849
Multiple operators can be applied by separating each token with a comma: `<attribute_name1>:<operation1>,<attribute_name2>:<operation2>`
4950

5051
An example query url might look like the following:
5152

5253
```
5354
# Single operation
54-
GET https://api.pagertree.com/api/v4/alerts?title=test&ops=title:beginsWith
55+
GET https://api.pagertree.com/api/v4/alerts?title=test&created_at=2026-06-09T00:00:00-07:00..2026-06-10T00:00:00-07:00&ops=title:beginsWith,created_at:between
5556
5657
# Combining operations
5758
GET https://api.pagertree.com/api/v4/schedules/:id/events?ops=start_datetime:gte,end_datetime:lte&start_datetime=2022-10-12 07:00:00&end_datetime=2022-10-13 07:00:00

0 commit comments

Comments
 (0)