List my saved searches.
GET/api/v1/saved-searchesdocuments:search
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Needs View Saved Document Searches. The caller's own saved searches, newest first, each with its search, its status (pending while the background task caches the result set, completed, failed, needs_rerun for a search saved before result sets were cached, needs_resaving for one that cannot be run as it was stored), the number of documents it matched and a plain-language summary.
| スコープ | documents:search |
| 非同期 | いいえ |
| MCP ツール | list_saved_searches |
| Portal の権限 | view_saved_document_searches |
| 会社に必要な機能 | search |
| ページング | snapshot |
| 既定の並び順 | -created_at, saved_search_id |
| 並べ替えに使えるフィールド | created_at, saved_search_id |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
limit | query | integer | 任意 | 既定値: 50; ≥ 1 |
cursor | query | string | 任意 | |
sort | query | string | 任意 | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, unsupported_for_tenant, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 の本文
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | SavedSearch の配列 | 必須 | |
next_cursor | string または null | 必須 | |
warnings | object の配列 | 必須 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
SavedSearch
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cached_hit_count | integer | 必須 | The documents cached so far while the run is pending. ≥ -2147483648; ≤ 2147483647 |
created_at | string (date-time) または null | 必須 | |
description | string | 必須 | |
name | string | 必須 | |
needs_rerun | boolean | 必須 | Saved before result sets were cached: run it again to read its result. |
needs_resaving | boolean | 必須 | The stored search cannot be run as it was stored: save it again. |
reason | string または null | 必須 | Why the search needs re-saving. |
saved_search_id | string | 必須 | |
search | SavedSearchSpec または null | 必須 | The search; null when it needs re-saving. |
status | string | 必須 | pending, completed, failed, needs_rerun or needs_resaving. |
summary | string または null | 必須 | The plain-language summary written when the search was saved. |
total_hit_count | integer | 必須 | The documents the last run matched. ≥ -2147483648; ≤ 2147483647 |
SavedSearchSpec
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
date_ranges | SearchDateRange の配列 | 必須 | Keep the documents whose dates fall in every range. |
document_number_prefixes | string の配列 | 必須 | Keep the documents whose number starts with one of these, ignoring case. |
exclude_duplicates | boolean または null | 必須 | Hide the documents that duplicate another document's number. |
facet_filters | SearchFacetFilter の配列 | 必須 | Keep the documents whose folder, tag, location, file author and so on hold one of the values. The values are the ones POST /documents/aggregate lists. |
query | string または null | 必須 | Full text, as in POST /documents/search. |
reference_numbers | string の配列 | 必須 | Keep the documents whose reference number contains one of these, ignoring case. |
weights | SearchWeights または null | 必須 | How much each field counts towards the score of a match of the query. 0 leaves a field out. |
SearchDateRange
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
field | string | 必須 | One of document_date, created_at, file_created_at, file_modified_at. |
from | string (date) または null | 必須 | The first day; open when left out. |
to | string (date) または null | 必須 | The last day; open when left out. |
SearchFacetFilter
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
facet | string | 必須 | One of document_type, document_sub_type, from, to, project, folder, location, tag, created_by, file_content_type, file_author, file_last_author, file_producer, file_title. |
values | SearchFacetValue の配列 | 必須 | Alternatives: a document is kept when its facet holds any of them. |
SearchFacetValue
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
include_children | boolean | 必須 | With match exact, also select the values under this one in a hierarchy (a folder's subfolders): the facet starts with the value, ignoring case. |
match | string または null | 必須 | exact (the default: the facet equals the value) or contains (the facet contains the text, ignoring case). |
value | string | 必須 | A value as the facet lists it. An empty string selects the documents with no value. |
SearchWeights
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
ccs | integer または null | 必須 | |
content | integer または null | 必須 | |
description | integer または null | 必須 | |
document_number | integer または null | 必須 | |
folders | integer または null | 必須 | |
from | integer または null | 必須 | |
other_number | integer または null | 必須 | |
reference_number | integer または null | 必須 | |
to | integer または null | 必須 |