Resolve the graph links of documents in the background.
POST/api/v1/graph/resolve-runscustom_fields:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Resolves the documents as the caller (reads through their access, writes attributed to them). One document runs at once on the interactive lane, with its on-demand DocumentLink fields; several become a backfill run over exactly those documents (backfill_run in the answer), paced on the bulk lane, resumable and without the on-demand fields. preset fast skips the rerank and the LLM verifier; balanced and thorough pick the template budgets. Every document must be one the caller can read (404 naming the documents). Needs Run Graph Resolve Jobs.
| スコープ | custom_fields:write |
| 非同期 | いいえ |
| MCP ツール | create_graph_resolve_run |
| Portal の権限 | run_graph_resolve_jobs |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | GraphResolveRunCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json GraphResolveRun または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
GraphBackfillRun
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
backfill_run_id | string | 必須 | |
chunk_number | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
chunk_size | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
created_at | string (date-time) または null | 必須 | |
custom_field_template_ids | string の配列 | 必須 | The templates the run resolves; empty for each configured template. |
documents_failed | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
documents_finished | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
documents_in_flight | integer | 必須 | Documents of the current chunk with no outcome yet. ≥ -2147483648; ≤ 2147483647 |
documents_queued | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
documents_skipped | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
documents_with_edges | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
documents_without_edges | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
edges_written | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
finished_at | string (date-time) または null | 必須 | |
is_stalled | boolean | 必須 | Some documents of the current chunk have no live claim: only a resume moves the run on. |
preset | string または null | 必須 | fast, balanced or thorough; null for each template's own budget. |
scope | GraphBackfillScope | 必須 | |
skip_processed | boolean | 必須 | |
started_by_user_id | string または null | 必須 | |
status | string | 必須 | running, paused or completed (open). |
updated_at | string (date-time) または null | 必須 |
GraphBackfillScope
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | 必須 | all, folder, project, doc_type or documents. |
values | string の配列 | 必須 | Folder, project or document IDs, or document type names; empty for all. |
GraphResolveRun
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
backfill_run | GraphBackfillRun または null | 必須 | For several documents: the backfill run over exactly those documents; null for one. |
resolve_run_id | string | 必須 | Written on every link the run makes. |
task_ids | string の配列 | 必須 | The Portal's background tasks (the run's driver for several documents). |
GraphResolveRunCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
custom_field_template_ids | string の配列 | 任意 | Only these templates; each configured template when left out. |
document_ids | string の配列 | 必須 | The documents to resolve; each must be readable by the caller. |
preset | string または null | 任意 | fast, balanced or thorough; each template's own budget when left out. |