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
{{ message }}
Repository navigation
Commit 63a5bd4
Browse filesBrowse the repository at this point in the historyBrowse files
Correct the ticket search fields, sorting and page size (#748)
* Correct the ticket search fields, sorting and page size
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Exclude title and description from ticket search sort fields
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Search queries can be complex, so optimizing them can help the performance of your search.
27970
27970
Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize
27971
-
pagination to limit the number of results returned. The default is `20` results per page.
27971
+
pagination to limit the number of results returned. The default is `20` results per page and maximum is `150`.
27972
27972
See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param.
27973
27973
{% /admonition %}
27974
27974
@@ -27982,19 +27982,18 @@ paths:
27982
27982
### Accepted Fields
27983
27983
27984
27984
Most keys listed as part of the Ticket model are searchable, whether writeable or not. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foobar"`).
27985
-
The `source.body` field is unique as the search will not be performed against the entire value, but instead against every element of the value separately. For example, when searching for a conversation with a `"I need support"` body - the query should contain a `=` operator with the value `"support"` for such conversation to be returned. A query with a `=` operator and a `"need support"` value will not yield a result.
27985
+
Fields not in the table below, such as `source.body`, are rejected with a `400` error.
* For **Tracker** category tickets, use the term `tracker`.
28010
28009
{% /admonition %}
28011
28010
28011
+
### Sorting
28012
+
28013
+
You can sort the results with a `sort` object, for example `{"field": "created_at", "order": "ascending"}`. `field` must be one of the fields in the table above, other than `ticket_attribute.{id}`, `title` and `description`. `order` is `ascending` or `descending`, and any other value is treated as `descending`. Without `sort`, results are sorted by `updated_at`, newest first.
28014
+
28012
28015
### Accepted Operators
28013
28016
28014
28017
{% admonition type="info" name="Searching based on `created_at`" %}
Search queries can be complex, so optimizing them can help the performance of your search.
25110
25110
Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize
25111
-
pagination to limit the number of results returned. The default is `20` results per page.
25111
+
pagination to limit the number of results returned. The default is `20` results per page and maximum is `150`.
25112
25112
See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param.
25113
25113
{% /admonition %}
25114
25114
@@ -25122,21 +25122,20 @@ paths:
25122
25122
### Accepted Fields
25123
25123
25124
25124
Most keys listed as part of the Ticket model are searchable, whether writeable or not. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foobar"`).
25125
-
The `source.body` field is unique as the search will not be performed against the entire value, but instead against every element of the value separately. For example, when searching for a conversation with a `"I need support"` body - the query should contain a `=` operator with the value `"support"` for such conversation to be returned. A query with a `=` operator and a `"need support"` value will not yield a result.
25125
+
Fields not in the table below, such as `source.body`, are rejected with a `400` error.
* For **Tracker** category tickets, use the term `tracker`.
25150
25149
{% /admonition %}
25151
25150
25151
+
### Sorting
25152
+
25153
+
You can sort the results with a `sort` object, for example `{"field": "created_at", "order": "ascending"}`. `field` must be one of the fields in the table above, other than `ticket_attribute.{id}`, `title` and `description`. `order` is `ascending` or `descending`, and any other value is treated as `descending`. Without `sort`, results are sorted by `updated_at`, newest first.
25154
+
25152
25155
### Accepted Operators
25153
25156
25154
25157
{% admonition type="info" name="Searching based on `created_at`" %}
0 commit comments